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

lokiore pushed a commit to branch 5.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/5.2 by this push:
     new c9b36f3246 PHOENIX-7533 :- ADDENDUM to fix tests with HBase 2.4 build 
(#2140)
c9b36f3246 is described below

commit c9b36f32468a7fb4ee0edcd0375fec8721b10121
Author: Lokesh Khurana <[email protected]>
AuthorDate: Mon May 5 11:09:40 2025 -0700

    PHOENIX-7533 :- ADDENDUM to fix tests with HBase 2.4 build (#2140)
---
 .../test/java/org/apache/phoenix/jdbc/PhoenixEmbeddedDriverTest.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixEmbeddedDriverTest.java
 
b/phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixEmbeddedDriverTest.java
index 27b40754b0..2e5c26e640 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixEmbeddedDriverTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixEmbeddedDriverTest.java
@@ -597,6 +597,7 @@ public class PhoenixEmbeddedDriverTest {
 
     @Test
     public void testRPCIPv6() throws SQLException{
+        assumeTrue(VersionInfo.compareVersion(VersionInfo.getVersion(), 
"2.5.0")>=0);
         Configuration config = 
HBaseFactoryProvider.getConfigurationFactory().getConfiguration();
         config.set("hbase.client.registry.impl",
                 "org.apache.hadoop.hbase.client.RpcConnectionRegistry");
@@ -694,7 +695,8 @@ public class PhoenixEmbeddedDriverTest {
                 props.get(HConstants.ZOOKEEPER_QUORUM));
         
assertEquals("127.23.45.678:12345,host987:12345,localhost:12345,v3:12345",
                 props.get(HConstants.CLIENT_ZOOKEEPER_QUORUM));
-
+        
+        assumeTrue(VersionInfo.compareVersion(VersionInfo.getVersion(), 
"2.5.0")>=0);
         connectionInfo = ConnectionInfo.create("jdbc:phoenix+rpc:"
                 + 
"localhost\\:2181,127.23.45.678\\:7634,v3\\:1,host123.48576\\:723::;"
                 + "test=true", null, null);

Reply via email to