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

shahrs87 pushed a commit to branch PHOENIX-6883-feature
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/PHOENIX-6883-feature by this 
push:
     new 34ed816fd0 PHOENIX-7252 Fix BackwardCompatibilityIT test failures 
(#1846)
34ed816fd0 is described below

commit 34ed816fd0ab7f0773e6e975ae39544df0a28d49
Author: Rushabh Shah <shahr...@apache.org>
AuthorDate: Tue Mar 5 14:24:16 2024 -0800

    PHOENIX-7252 Fix BackwardCompatibilityIT test failures (#1846)
---
 .../src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
index 3864292cbd..9e94f4eb1c 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
@@ -59,6 +59,7 @@ import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.client.Admin;
 import org.apache.hadoop.hbase.client.TableDescriptor;
+import org.apache.phoenix.cache.ServerMetadataCache;
 import org.apache.phoenix.coprocessor.SystemCatalogRegionObserver;
 import org.apache.phoenix.coprocessor.TaskMetaDataEndpoint;
 import 
org.apache.phoenix.end2end.BackwardCompatibilityTestUtil.MavenCoordinates;
@@ -136,6 +137,7 @@ public class BackwardCompatibilityIT {
             DriverManager.deregisterDriver(PhoenixDriver.INSTANCE);
         } finally {
             hbaseTestUtil.shutdownMiniCluster();
+            ServerMetadataCache.resetCache();
         }
         System.setProperty("java.io.tmpdir", tmpDir);
         assertFalse("refCount leaked", refCountLeaked);

Reply via email to