From 280aaab6185ca9e9e684d22e6ddc7bda8ed15ee7 Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Mon, 3 Aug 2026 20:58:58 -0700 Subject: [PATCH] PHOENIX-7964: Add Phoenix readiness check to ConnectionConfigIT ConnectionConfigIT was missing the TestUtils.awaitPhoenixReady(url) call that was added to other integration tests. This caused the test to fail intermittently on JDK 21 when it tried to connect to Phoenix before the system tables were fully initialized. The fix adds the readiness check after the mini-cluster starts and before the REST server is created, matching the pattern used in other test classes. --- .../src/test/java/org/apache/phoenix/ddb/ConnectionConfigIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/ConnectionConfigIT.java b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/ConnectionConfigIT.java index 70f975a..9b52e22 100644 --- a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/ConnectionConfigIT.java +++ b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/ConnectionConfigIT.java @@ -62,6 +62,7 @@ public static void initialize() throws Exception { utility.startMiniCluster(); String zkQuorum = "127.0.0.1:" + utility.getZkCluster().getClientPort(); url = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + zkQuorum; + TestUtils.awaitPhoenixReady(url); restServer = new RESTServer(utility.getConfiguration()); restServer.run();