Skip to content

Commit

Permalink
fix CdcToBigQueryChangeApplierPipelineIT debezium wait logic (#1729)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber committed Aug 2, 2024
1 parent f6d2404 commit b4c0c29
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,13 @@ private void testDebeziumCdcToBigQuery(boolean singleTopicMode) throws Exception
LOG.info("Debezium process status: {}", embeddedConnector.isAlive());

if (!embeddedConnector.isAlive()) {
throw new IllegalStateException("Debezium hasn't started");
TimeUnit.SECONDS.sleep(5);
} else {
break;
}
TimeUnit.SECONDS.sleep(5);
}
if (!embeddedConnector.isAlive()) {
throw new IllegalStateException("Debezium hasn't started");
}
LOG.info("Debezium connector successfully started!");

Expand Down

0 comments on commit b4c0c29

Please sign in to comment.