[branch-2.1][improvement](mysql catalog) disable mysql AbandonedConnectionCleanupThread (#36970)
pick (#36655)
This commit is contained in:
@ -48,6 +48,7 @@ public class MySQLJdbcExecutor extends BaseJdbcExecutor {
|
||||
|
||||
public MySQLJdbcExecutor(byte[] thriftParams) throws Exception {
|
||||
super(thriftParams);
|
||||
System.setProperty("com.mysql.cj.disableAbandonedConnectionCleanup", "true");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -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