Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed May 6, 2024
1 parent d538163 commit 414b264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public DbzConnectorConfig(
null != userProps.get(SNAPSHOT_MODE_KEY)
&& userProps.get(SNAPSHOT_MODE_KEY).equals(SNAPSHOT_MODE_BACKFILL);
var waitStreamingStartTimeout =
Integer.parseInt(userProps.get(WAIT_FOR_STREAMING_START_TIMEOUT_SECS));
Integer.parseInt(
userProps.getOrDefault(WAIT_FOR_STREAMING_START_TIMEOUT_SECS, "30"));

LOG.info(
"DbzConnectorConfig: source={}, sourceId={}, startOffset={}, snapshotDone={}, isCdcBackfill={}, isCdcSourceJob={}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ protected ConnectorServiceProto.ValidateSourceResponse validateSource(
.putProperties("server.id", "1") // mysql only
.putProperties("publication.name", "rw_publication") // pg only
.putProperties("publication.create.enable", "true") // pg only
.putProperties("cdc.source.wait.streaming.start.timeout", "30")
.build();
return blockingStub.validateSource(req);
}
Expand All @@ -144,7 +143,6 @@ protected Iterator<ConnectorServiceProto.GetEventStreamResponse> getEventStreamS
.putProperties("schema.name", "public") // pg only
.putProperties("slot.name", "orders") // pg only
.putProperties("server.id", "1") // mysql only
.putProperties("cdc.source.wait.streaming.start.timeout", "30")
.build();
Iterator<ConnectorServiceProto.GetEventStreamResponse> responses = null;
try {
Expand Down

0 comments on commit 414b264

Please sign in to comment.