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

Null pointer when gracefully stopping the MySQL connector

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.2.4
    • 0.2.3
    • mysql-connector
    • None

      When gracefully stopping the Kafka Connect process running the MySQL connector, the following error is produced:

      2016-08-16 13:33:00,140 INFO   ||  Starting graceful shutdown of thread WorkerSourceTask-inventory-connector-0   [org.apache.kafka.connect.util.ShutdownableThread]
      2016-08-16 13:33:00,140 INFO   ||  Stopping MySQL connector task   [io.debezium.connector.mysql.MySqlConnectorTask]
      2016-08-16 13:33:00,141 INFO   ||  Connector task successfully stopped   [io.debezium.connector.mysql.MySqlConnectorTask]
      Exception in thread "Thread-1" java.lang.NullPointerException
      	at io.debezium.connector.mysql.MySqlConnectorTask.stop(MySqlConnectorTask.java:155)
      	at org.apache.kafka.connect.runtime.WorkerSourceTask$WorkerSourceTaskThread.startGracefulShutdown(WorkerSourceTask.java:378)
      	at org.apache.kafka.connect.runtime.WorkerSourceTask.stop(WorkerSourceTask.java:108)
      	at org.apache.kafka.connect.runtime.Worker.stop(Worker.java:136)
      	at org.apache.kafka.connect.runtime.Connect.stop(Connect.java:72)
      	at org.apache.kafka.connect.runtime.Connect$ShutdownHook.run(Connect.java:93)
      

      This appears to have been fixed in master as part of 0.3.

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: