diff --git a/java/yb-ysql-conn-mgr/src/test/java/org/yb/ysqlconnmgr/BaseYsqlConnMgr.java b/java/yb-ysql-conn-mgr/src/test/java/org/yb/ysqlconnmgr/BaseYsqlConnMgr.java index 1f6a6db2416a..84a144236d13 100644 --- a/java/yb-ysql-conn-mgr/src/test/java/org/yb/ysqlconnmgr/BaseYsqlConnMgr.java +++ b/java/yb-ysql-conn-mgr/src/test/java/org/yb/ysqlconnmgr/BaseYsqlConnMgr.java @@ -48,8 +48,6 @@ protected void customizeMiniClusterBuilder(MiniYBClusterBuilder builder) { builder.numTservers(NUM_TSERVER); builder.replicationFactor(NUM_TSERVER); builder.addCommonTServerFlag("ysql_conn_mgr_dowarmup", "false"); - builder.addCommonTServerFlag( - "TEST_ysql_conn_mgr_dowarmup_all_pools_random_attach", "true"); } protected ConnectionBuilder getConnectionBuilder() { diff --git a/src/yb/yql/ysql_conn_mgr_wrapper/ysql_conn_mgr_wrapper.cc b/src/yb/yql/ysql_conn_mgr_wrapper/ysql_conn_mgr_wrapper.cc index 4f18ea27046a..4b9f2592f0cb 100644 --- a/src/yb/yql/ysql_conn_mgr_wrapper/ysql_conn_mgr_wrapper.cc +++ b/src/yb/yql/ysql_conn_mgr_wrapper/ysql_conn_mgr_wrapper.cc @@ -112,9 +112,11 @@ Status YsqlConnMgrWrapper::Start() { auto ysql_conn_mgr_executable = GetYsqlConnMgrExecutablePath(); RETURN_NOT_OK(CheckExecutableValid(ysql_conn_mgr_executable)); - if (FLAGS_TEST_ysql_conn_mgr_dowarmup_all_pools_random_attach && - FLAGS_ysql_conn_mgr_min_conns_per_db < 3) { - FLAGS_ysql_conn_mgr_min_conns_per_db = 3; + if (FLAGS_TEST_ysql_conn_mgr_dowarmup_all_pools_random_attach) { + LOG(INFO) << "Warmup and random allotment of server connections is enabled in " + "ysql connection manager"; + if (FLAGS_ysql_conn_mgr_min_conns_per_db < 3) + FLAGS_ysql_conn_mgr_min_conns_per_db = 3; } std::vector argv{