diff --git a/java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgExplainAnalyze.java b/java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgExplainAnalyze.java index 660277768213..010c17311478 100644 --- a/java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgExplainAnalyze.java +++ b/java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgExplainAnalyze.java @@ -753,6 +753,12 @@ public void testDeleteReturning() throws Exception { @Test public void testExplainAnalyzeOptions() throws Exception { + if (isTestRunningWithConnectionManager()) { + // (DB-12674) Allow tests to run in round-robin allocation mode when + // using a pool of warmed up connections to allow for deterministic results. + setConnMgrWarmupModeAndRestartCluster(ConnectionManagerWarmupMode.ROUND_ROBIN); + setUp(); + } String query = String.format("SELECT * FROM %s", TABLE_NAME); try (Statement stmt = connection.createStatement()) { setHideNonDeterministicFields(stmt, true);