You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to set the transaction isolation level, but it only took effect in poolEntry settings. The created connection object did not have the corresponding isolation level set
#2218
public HikariConfig buildConfig(String poolName, DbAccount db) {
HikariConfig config = new HikariConfig();
config.setPoolName(poolName);
config.setAutoCommit(false);
config.setTransactionIsolation("TRANSACTION_SERIALIZABLE");
config.setUsername(db.user);
config.setPassword(db.password);
config.setConnectionTestQuery("select 1;");
config.setMaximumPoolSize(300);
config.setMinimumIdle(1);
config.setMaxLifetime(600000);// 10 minutes
config.setConnectionTimeout(300000); // 5 minutes
config.setIdleTimeout(600000); // 10 minutes
config.setDriverClassName(db.type.getDriverClassName());
return config;
}This is the property I set, and you can see that poolEntry has set the transaction isolation level. When I use the connection, I still need to manually set the transaction isolation level of the connection
The text was updated successfully, but these errors were encountered:
public HikariConfig buildConfig(String poolName, DbAccount db) {
HikariConfig config = new HikariConfig();
config.setPoolName(poolName);
config.setAutoCommit(false);
config.setTransactionIsolation("TRANSACTION_SERIALIZABLE");
config.setUsername(db.user);
config.setPassword(db.password);
config.setConnectionTestQuery("select 1;");
config.setMaximumPoolSize(300);
config.setMinimumIdle(1);
config.setMaxLifetime(600000);// 10 minutes
config.setConnectionTimeout(300000); // 5 minutes
config.setIdleTimeout(600000); // 10 minutes
config.setDriverClassName(db.type.getDriverClassName());
return config;
}This is the property I set, and you can see that poolEntry has set the transaction isolation level. When I use the connection, I still need to manually set the transaction isolation level of the connection
The text was updated successfully, but these errors were encountered: