From 22653d837ec7c03e5e9be5cd160a1ab87850e4ef Mon Sep 17 00:00:00 2001 From: Viraj Jasani Date: Wed, 5 Aug 2026 15:15:59 -0700 Subject: [PATCH] PHOENIX-7964 Register Driver for tests if not done already (ADDENDUM) --- .../src/test/java/org/apache/phoenix/ddb/TestUtils.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java index 1bdc281..0c38eec 100644 --- a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java +++ b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java @@ -297,6 +297,11 @@ public static void assertEventIdsUnique(List records) { * may take several seconds to come up. Poll until ready or 30s elapses. */ public static void awaitPhoenixReady(String jdbcUrl) { + try { + DriverManager.getDriver(jdbcUrl); + } catch (SQLException e) { + PhoenixUtils.registerDriver(); + } final int maxAttempts = 30; SQLException last = null; for (int attempt = 1; attempt <= maxAttempts; attempt++) {