Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-1002

NPE in SqlServerConnectorTask#cleanupResources() if connector failed to start

    XMLWordPrintable

Details

    Description

      java.lang.NullPointerException
      connect_1    | 	at io.debezium.connector.sqlserver.SqlServerConnectorTask.cleanupResources(SqlServerConnectorTask.java:211)
      connect_1    | 	at io.debezium.connector.sqlserver.SqlServerConnectorTask.stop(SqlServerConnectorTask.java:172)
      connect_1    | 	at org.apache.kafka.connect.runtime.WorkerSourceTask.tryStop(WorkerSourceTask.java:186)
      connect_1    | 	at org.apache.kafka.connect.runtime.WorkerSourceTask.close(WorkerSourceTask.java:150)
      connect_1    | 	at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:154)
      connect_1    | 	at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:181)
      connect_1    | 	at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:219)
      connect_1    | 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      connect_1    | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      connect_1    | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      connect_1    | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      connect_1    | 	at java.lang.Thread.run(Thread.java:748)
      

      It doesn't matter really as the connector has failed anyways, but it obscurs the logs and generally creates a bad perception.

      Attachments

        Activity

          People

            gmorling@redhat.com Gunnar Morling
            gmorling@redhat.com Gunnar Morling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: