watsonjo737 commented on code in PR #4156:
URL: https://github.com/apache/flink-cdc/pull/4156#discussion_r2449234783
##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/DebeziumUtils.java:
##########
@@ -242,12 +243,30 @@ private static Map<String, String> querySystemVariables(
return variables;
}
+ static SSLMode sslModeFor(MySqlConnectorConfig.SecureConnectionMode mode) {
+ switch (mode) {
+ case DISABLED:
+ return SSLMode.DISABLED;
+ case PREFERRED:
+ return SSLMode.PREFERRED;
+ case REQUIRED:
+ return SSLMode.REQUIRED;
+ case VERIFY_CA:
+ return SSLMode.VERIFY_CA;
+ case VERIFY_IDENTITY:
+ return SSLMode.VERIFY_IDENTITY;
+ }
+ return null;
+ }
Review Comment:
Thanks @gguptp , I have updated according to your suggestion
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]