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

Intermittent test failure: SqlServerConnectorIT#updatePrimaryKeyWithRestartInMiddle()

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.CR1
    • 1.8.0.Final
    • sqlserver-connector
    • None

      See https://github.com/sugarcrm/debezium/runs/4612407869?check_suite_focus=true

      [ERROR] io.debezium.connector.sqlserver.SqlServerConnectorIT.updatePrimaryKeyWithRestartInMiddle  Time elapsed: 50.245 s  <<< ERROR!
      java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null
      	at io.debezium.connector.sqlserver.SqlServerConnectorIT.updatePrimaryKeyWithRestartInMiddle(SqlServerConnectorIT.java:549)
      Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null
      	at io.debezium.connector.sqlserver.SqlServerConnectorIT.lambda$updatePrimaryKeyWithRestartInMiddle$12(SqlServerConnectorIT.java:568)
      	at io.debezium.connector.sqlserver.SqlServerConnectorIT.updatePrimaryKeyWithRestartInMiddle(SqlServerConnectorIT.java:549)
      

      Judging by the error message, it looks like the test starts consuming more messages right after the connector has restarted without waiting for it to actually start streaming.

      The same test passes on a subsequent build of the same tree:
      https://github.com/sugarcrm/debezium/runs/4613036370?check_suite_focus=true

      The issue may be reproducible more often on the multi-partition build rather than the one from the main branch because our build snapshots and streams two databases.

              vjuranek@redhat.com Vojtech Juranek
              sergeimorozov Sergei Morozov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: