This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch 4.x in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x by this push: new 1499989 PHOENIX-6338 TxCheckpointIT frequently hangs on 4.x 1499989 is described below commit 14999896016b36bdabc908f5a4fbad1e13f2ebfd Author: Istvan Toth <st...@apache.org> AuthorDate: Sat Jan 23 14:01:01 2021 +0100 PHOENIX-6338 TxCheckpointIT frequently hangs on 4.x --- .../src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java index 4d36cc5..55ffb25 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java @@ -41,6 +41,7 @@ import org.apache.phoenix.transaction.PhoenixTransactionContext.PhoenixVisibilit import org.apache.phoenix.util.PropertiesUtil; import org.apache.phoenix.util.SchemaUtil; import org.apache.phoenix.util.TestUtil; +import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -52,6 +53,14 @@ public class TxCheckpointIT extends ParallelStatsDisabledIT { private final boolean localIndex; private final String tableDDLOptions; + @BeforeClass + public static synchronized void forceClearTables() throws Exception { + // We see this specific test hanging with Heap memory problems. + // Try to free as much resources as we can before starting + resetHbase(); + doSetup(); + } + public TxCheckpointIT(boolean localIndex, boolean mutable, boolean columnEncoded, String transactionProvider) { StringBuilder optionBuilder = new StringBuilder(); optionBuilder.append("TRANSACTION_PROVIDER='" + transactionProvider + "'");