I am using Debezium Sql Server Connector for Apache Camel to replicate changes from one database to another.
Everything works fine, except that when for some reason the database or network goes down, the connector stop and won't start again, even if the database recovers in a few seconds. Is there any way to restart the Debezium connector automatically?, or at least... Is there any way to check the status of connector periodically and restart if needed? Any idea is welcome... See below an excerpt of the error right after the database crash: io.debezium.embedded.EmbeddedEngine: Error while trying to run connector class 'io.debezium.connector.sqlserver.SqlServerConnector' ... org.apache.kafka.connect.errors.ConnectException: An exception occurred in the change event producer. This connector will be stopped. ... com.microsoft.sqlserver.jdbc.SQLServerException: SQL Server no devolvió una respuesta. Se ha cerrado la conexión. ... See more details here: https://stackoverflow.com/questions/71916990/is-there-any-way-to-restart-the-debezium-connector-automatically-in-apache-camel