This is an automated email from the ASF dual-hosted git repository.

virajjasani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/phoenix-adapters.git


The following commit(s) were added to refs/heads/main by this push:
     new dd40782  PHOENIX-7964 Register Driver for tests if not done already 
(ADDENDUM) (#16)
dd40782 is described below

commit dd4078234b7a0cb6c5335ba3f88687109711b406
Author: Viraj Jasani <[email protected]>
AuthorDate: Wed Aug 5 20:36:52 2026 -0700

    PHOENIX-7964 Register Driver for tests if not done already (ADDENDUM) (#16)
---
 phoenix-ddb-rest/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 class TestUtils {
      * 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++) {

Reply via email to