From 414b26438d8f9669aba4df6e2a2e5226089b8a1f Mon Sep 17 00:00:00 2001 From: Kexiang Wang Date: Mon, 6 May 2024 17:25:16 -0400 Subject: [PATCH] tmp --- .../risingwave/connector/source/common/DbzConnectorConfig.java | 3 ++- .../java/com/risingwave/connector/source/SourceTestClient.java | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/common/DbzConnectorConfig.java b/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/common/DbzConnectorConfig.java index f05df92e9c452..c2df37dbcdc82 100644 --- a/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/common/DbzConnectorConfig.java +++ b/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/common/DbzConnectorConfig.java @@ -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={}", diff --git a/java/connector-node/risingwave-source-test/src/test/java/com/risingwave/connector/source/SourceTestClient.java b/java/connector-node/risingwave-source-test/src/test/java/com/risingwave/connector/source/SourceTestClient.java index e8be33e90ee3c..58c72c688dfef 100644 --- a/java/connector-node/risingwave-source-test/src/test/java/com/risingwave/connector/source/SourceTestClient.java +++ b/java/connector-node/risingwave-source-test/src/test/java/com/risingwave/connector/source/SourceTestClient.java @@ -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); } @@ -144,7 +143,6 @@ protected Iterator 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 responses = null; try {