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

NPE in KafkaDatabaseHistory

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 0.3.5, 0.4
    • 0.3.4
    • mysql-connector
    • None

    Description

      While testing DBZ-143, we started seeing these errors:

      Nov 01, 2016 9:02:42 PM com.github.shyiko.mysql.binlog.BinaryLogClient notifyEventListeners
      WARNING: io.debezium.connector.mysql.BinlogReader$$Lambda$163/496061144@755e7c7c choked on Event{header=EventHeaderV4{timestamp=1478034162000, eventType=QUERY, serverId=798028720, headerLength=19, dataLength=45, nextPosition=2338906, flags=8}, data=QueryEventData{threadId=2, executionTime=0, errorCode=0, database='', sql='COMMIT'}}
      java.lang.NullPointerException
          at io.debezium.relational.history.KafkaDatabaseHistory.storeRecord(KafkaDatabaseHistory.java:157)
          at io.debezium.relational.history.AbstractDatabaseHistory.record(AbstractDatabaseHistory.java:44)
          at io.debezium.connector.mysql.MySqlSchema.applyDdl(MySqlSchema.java:359)
          at io.debezium.connector.mysql.BinlogReader.handleQueryEvent(BinlogReader.java:381)
          at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:286)
          at com.github.shyiko.mysql.binlog.BinaryLogClient.notifyEventListeners(BinaryLogClient.java:877)
          at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:735)
          at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:451)
          at com.github.shyiko.mysql.binlog.BinaryLogClient$5.run(BinaryLogClient.java:632)
          at java.lang.Thread.run(Thread.java:745)
      

      It seems to me that the producer on line 157 might be null, which is likely due to start() not finishing yet.

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              criccomini Chris Riccomini (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: