[branch-2.1][improvement](mysql catalog) disable mysql AbandonedConnectionCleanupThread (#36970)
pick (#36655)
This commit is contained in:
@ -45,6 +45,8 @@ public class JdbcMySQLClient extends JdbcClient {
|
||||
|
||||
protected JdbcMySQLClient(JdbcClientConfig jdbcClientConfig) {
|
||||
super(jdbcClientConfig);
|
||||
// Disable abandoned connection cleanup
|
||||
System.setProperty("com.mysql.cj.disableAbandonedConnectionCleanup", "true");
|
||||
convertDateToNull = isConvertDatetimeToNull(jdbcClientConfig);
|
||||
Connection conn = null;
|
||||
Statement stmt = null;
|
||||
|
||||
Reference in New Issue
Block a user