I'm using kafka JDBC connector to push data from kafka topic to postgres on aws. However, when a bad message occurs, for example, the data type in the message is different from what is defined in the database, I get error message:
ERROR WorkerSinkTask{id=postgres_sink -0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. (org.apache.kafka.connect.runtime.WorkerSinkTask:584)
Then I have to delete my jdbc sink connector (pod) manually and let it start a new one. Since I am running in a standalone mode, I need to prevent the connector (pod) from failing or restart automatically because an insert failed.