You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2023/08/17 05:04:42 UTC

[phoenix] branch 5.1 updated: PHOENIX-7019 ParallelPhoenixConnectionTest failures because of misconfigured EnvironmentEdgeManager

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

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


The following commit(s) were added to refs/heads/5.1 by this push:
     new 4e66468014 PHOENIX-7019 ParallelPhoenixConnectionTest failures because of misconfigured EnvironmentEdgeManager
4e66468014 is described below

commit 4e66468014b428b8f7af7b3c6ffb81cdba9df3b7
Author: Istvan Toth <st...@apache.org>
AuthorDate: Wed Aug 16 14:47:42 2023 +0200

    PHOENIX-7019 ParallelPhoenixConnectionTest failures because of misconfigured EnvironmentEdgeManager
    
    5.1 does not have ParallelPhoenixConnectionTest,
    but we still want to properly reset EnvironmentEdgeManager
---
 .../java/org/apache/phoenix/index/VerifySingleIndexRowTest.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/phoenix-core/src/test/java/org/apache/phoenix/index/VerifySingleIndexRowTest.java b/phoenix-core/src/test/java/org/apache/phoenix/index/VerifySingleIndexRowTest.java
index e3c3e9b5af..5958a3d247 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/index/VerifySingleIndexRowTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/index/VerifySingleIndexRowTest.java
@@ -43,6 +43,7 @@ import org.apache.phoenix.query.QueryConstants;
 import org.apache.phoenix.schema.PTable;
 import org.apache.phoenix.schema.PTableKey;
 import org.apache.phoenix.util.*;
+import org.junit.After;
 import org.junit.Assume;
 import org.junit.Before;
 import org.junit.Rule;
@@ -150,6 +151,11 @@ public class VerifySingleIndexRowTest extends BaseConnectionlessQueryTest {
         initializeGlobalMockitoSetup();
     }
 
+    @After
+    public void reset() {
+        EnvironmentEdgeManager.reset();
+    }
+
     public void createDBObject() throws SQLException {
         try(Connection conn = DriverManager.getConnection(getUrl(), new Properties())) {
             schema = generateUniqueName();