-
Task
-
Resolution: Done
-
Major
-
1.8.0.Final
-
None
-
False
-
False
-
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.