diff --git a/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/SourceValidateHandler.java b/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/SourceValidateHandler.java index d6afb17fb0ccf..23611495c6077 100644 --- a/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/SourceValidateHandler.java +++ b/java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/SourceValidateHandler.java @@ -65,7 +65,7 @@ public static ConnectorServiceProto.ValidateSourceResponse validateResponse(Stri private static void ensurePropNotBlank(Map props, String name) { if (StringUtils.isBlank(props.get(name))) { throw ValidatorUtils.invalidArgument( - String.format("'%s' not found, please check the WITH properties", name)); + String.format("'%s' cannot be empty, please check the WITH properties", name)); } } @@ -74,7 +74,6 @@ static void ensureRequiredProps(Map props, boolean isMultiTableS ensurePropNotBlank(props, DbzConnectorConfig.PORT); ensurePropNotBlank(props, DbzConnectorConfig.DB_NAME); ensurePropNotBlank(props, DbzConnectorConfig.USER); - ensurePropNotBlank(props, DbzConnectorConfig.PASSWORD); // ensure table name is passed by user in non-sharing mode if (!isMultiTableShared) { ensurePropNotBlank(props, DbzConnectorConfig.TABLE_NAME);