From 7cfb659a3980a1ded69bbd502763d7d6d8b3f874 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Sat, 21 Nov 2026 09:07:04 -0800 Subject: [PATCH 1/2] PHOENIX-8073 Disable failing Transform integration tests until rework The Transform ITs had no JUnit category, so CI never ran them, and many now fail on master. Transform is getting a rewrite, so ignore the failing methods instead of fixing them. Categorize the classes by how they set up their cluster. Co-Authored-By: Claude Opus 5.5 --- .../phoenix/end2end/index/IndexTwoPhaseCreateIT.java | 5 +++++ .../phoenix/end2end/transform/TransformIT.java | 10 ++++++++++ .../end2end/transform/TransformMonitorIT.java | 11 +++++++++++ .../phoenix/end2end/transform/TransformToolIT.java | 12 ++++++++++++ 4 files changed, 38 insertions(+) diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexTwoPhaseCreateIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexTwoPhaseCreateIT.java index f6fea5a711a..a645752f27e 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexTwoPhaseCreateIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexTwoPhaseCreateIT.java @@ -35,6 +35,7 @@ import java.util.Properties; import org.apache.phoenix.coprocessorclient.BaseScannerRegionObserverConstants; import org.apache.phoenix.end2end.IndexToolIT; +import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest; import org.apache.phoenix.end2end.transform.TransformToolIT; import org.apache.phoenix.jdbc.PhoenixConnection; import org.apache.phoenix.query.BaseTest; @@ -49,10 +50,13 @@ import org.apache.phoenix.util.TestUtil; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.apache.phoenix.thirdparty.com.google.common.collect.Maps; +@Category(NeedsOwnMiniClusterTest.class) public class IndexTwoPhaseCreateIT extends BaseTest { @BeforeClass public static synchronized void doSetup() throws Exception { @@ -124,6 +128,7 @@ public void testIndexCreateDisabledBuildAfter() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformingTableAndIndex() throws Exception { Properties testProps = PropertiesUtil.deepCopy(TEST_PROPERTIES); try (Connection conn = DriverManager.getConnection(getUrl(), testProps)) { diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformIT.java index 7e46779e236..9e69118af22 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformIT.java @@ -37,6 +37,7 @@ import java.sql.SQLException; import java.util.Properties; import org.apache.phoenix.end2end.ParallelStatsDisabledIT; +import org.apache.phoenix.end2end.ParallelStatsDisabledTest; import org.apache.phoenix.end2end.index.SingleCellIndexIT; import org.apache.phoenix.exception.SQLExceptionCode; import org.apache.phoenix.jdbc.PhoenixConnection; @@ -49,10 +50,13 @@ import org.apache.phoenix.util.PropertiesUtil; import org.apache.phoenix.util.SchemaUtil; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.apache.phoenix.thirdparty.com.google.common.base.Strings; +@Category(ParallelStatsDisabledTest.class) public class TransformIT extends ParallelStatsDisabledIT { private Properties testProps = PropertiesUtil.deepCopy(TEST_PROPERTIES); @@ -257,11 +261,13 @@ public void testTransform_tableWithLocalIndex() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForLiveMutations_mutatingImmutableTable() throws Exception { testTransformForLiveMutations_mutatingTable(" IMMUTABLE_ROWS=TRUE"); } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForLiveMutations_mutatingMutableTable() throws Exception { testTransformForLiveMutations_mutatingTable(""); } @@ -324,6 +330,7 @@ private void testTransformForLiveMutations_mutatingTable(String tableDDL) throws } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForLiveMutations_mutatingBaseTableNoIndex() throws Exception { try (Connection conn = DriverManager.getConnection(getUrl(), testProps)) { conn.setAutoCommit(true); @@ -416,11 +423,13 @@ private void testTransformForLiveMutations_mutatingIndex(String tableDDL) throws } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForLiveMutations_mutatingMutableBaseTableForView() throws Exception { testTransformForLiveMutations_mutatingBaseTableForView(""); } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForLiveMutations_mutatingImmutableBaseTableForView() throws Exception { testTransformForLiveMutations_mutatingBaseTableForView(" IMMUTABLE_ROWS=true"); } @@ -511,6 +520,7 @@ public void testTransformForView() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testAlterNotNeedsToTransformDueToSameProps() throws Exception { String schema = "S_" + generateUniqueName(); String tableName = "TBL_" + generateUniqueName(); diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java index 9beda3f8d63..bcbadbfb6d3 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java @@ -45,6 +45,7 @@ import org.apache.phoenix.coprocessor.TaskRegionObserver; import org.apache.phoenix.coprocessor.tasks.TransformMonitorTask; import org.apache.phoenix.end2end.ParallelStatsDisabledIT; +import org.apache.phoenix.end2end.ParallelStatsDisabledTest; import org.apache.phoenix.end2end.index.SingleCellIndexIT; import org.apache.phoenix.jdbc.ConnectionInfo; import org.apache.phoenix.jdbc.PhoenixConnection; @@ -64,8 +65,11 @@ import org.apache.phoenix.util.PropertiesUtil; import org.apache.phoenix.util.SchemaUtil; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelStatsDisabledTest.class) public class TransformMonitorIT extends ParallelStatsDisabledIT { private static RegionCoprocessorEnvironment TaskRegionEnvironment; @@ -245,6 +249,7 @@ protected int countRowsForViewIndex(Connection conn, String baseTable) } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformMonitor_mutableTableWithoutIndex() throws Exception { testTransformTable(false, false, false); } @@ -328,11 +333,13 @@ public void testTransformMonitor_pauseAndResumeTransform() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformMonitor_mutableTableWithIndex() throws Exception { testTransformTable(true, false, false); } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformMonitor_tableWithViews() throws Exception { testTransformTable(false, true, false); } @@ -382,6 +389,7 @@ public void testTransformMonitor_index() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformTableWithTenantViews() throws Exception { String tenantId = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -505,6 +513,7 @@ record = Transform.getTransformRecord(null, indexName, dataTableName, null, } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformAlreadyTransformedTable() throws Exception { String dataTableName = "TBL_" + generateUniqueName(); try (Connection conn = DriverManager.getConnection(getUrl(), testProps)) { @@ -634,6 +643,7 @@ public void testDifferentClientAccessTransformedTable(boolean isImmutable) throw } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testDifferentClientAccessTransformedTable_mutable() throws Exception { // A connection does transform and another connection doesn't try to upsert into old table testDifferentClientAccessTransformedTable(false); @@ -674,6 +684,7 @@ public void testTransformTable_cutoverNotAuto() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformMonitor_tableWithViews_OnOldAndNew() throws Exception { // Create view before and after transform with different select statements and check String schemaName = "S_" + generateUniqueName(); diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformToolIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformToolIT.java index 801238f26a8..f68eff88426 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformToolIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformToolIT.java @@ -56,6 +56,7 @@ import org.apache.hadoop.hbase.util.Bytes; import org.apache.phoenix.coprocessor.tasks.TransformMonitorTask; import org.apache.phoenix.end2end.IndexToolIT; +import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest; import org.apache.phoenix.end2end.ParallelStatsDisabledIT; import org.apache.phoenix.end2end.index.SingleCellIndexIT; import org.apache.phoenix.exception.SQLExceptionCode; @@ -75,7 +76,9 @@ import org.apache.phoenix.util.SchemaUtil; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.slf4j.Logger; @@ -84,6 +87,7 @@ import org.apache.phoenix.thirdparty.com.google.common.collect.Lists; import org.apache.phoenix.thirdparty.com.google.common.collect.Maps; +@Category(NeedsOwnMiniClusterTest.class) @RunWith(Parameterized.class) public class TransformToolIT extends ParallelStatsDisabledIT { private static final Logger LOGGER = LoggerFactory.getLogger(TransformToolIT.class); @@ -298,6 +302,7 @@ public void testResumeTransform() throws Exception { * Test presplitting an index table */ @Test + @Ignore("Transform is under rework. This test fails on master.") public void testSplitTable() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -373,6 +378,7 @@ public void testSplitTable() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testDataAfterTransformingMultiColFamilyTable() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -490,6 +496,7 @@ record = Transform.getTransformRecord(schemaName, indexTableName, dataTableFullN } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformMutationReadRepair() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -621,6 +628,7 @@ public void testTransformIndexReadRepair() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformMutationFailureRepair() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -747,6 +755,7 @@ private void testTransactionalTableCannotTransform(String provider) throws Excep } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformVerify() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -877,6 +886,7 @@ record = Transform.getTransformRecord(schemaName, dataTableName2, null, null, } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformVerify_shouldFixUnverified() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -1060,6 +1070,7 @@ record = Transform.getTransformRecord(schemaName, dataTableName, null, null, } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForGlobalViews() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); @@ -1140,6 +1151,7 @@ public void testTransformForGlobalViews() throws Exception { } @Test + @Ignore("Transform is under rework. This test fails on master.") public void testTransformForTenantViews() throws Exception { String schemaName = generateUniqueName(); String dataTableName = generateUniqueName(); From b7fd2566df8debd4eddbc035fa3ad4d1af1242db Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Mon, 23 Nov 2026 18:35:58 -0800 Subject: [PATCH 2/2] PHOENIX-8073 Disable all of TransformMonitorIT and give it its own mini cluster In a full IT run, TransformMonitorIT runs in a reused ParallelStatsDisabled fork after many other classes. There, the transform monitor tasks stay in the CREATED or STARTED state, and six methods that pass alone fail. One more method times out after 50 minutes. Move the class to NeedsOwnMiniClusterTest and ignore the whole class until the transform rework. The method-level ignores stay, so they still show which methods fail when the class runs alone. Co-Authored-By: Claude Opus 5.5 --- .../phoenix/end2end/transform/TransformMonitorIT.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java index bcbadbfb6d3..d48da529a00 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/transform/TransformMonitorIT.java @@ -44,8 +44,8 @@ import org.apache.hadoop.hbase.util.Bytes; import org.apache.phoenix.coprocessor.TaskRegionObserver; import org.apache.phoenix.coprocessor.tasks.TransformMonitorTask; +import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest; import org.apache.phoenix.end2end.ParallelStatsDisabledIT; -import org.apache.phoenix.end2end.ParallelStatsDisabledTest; import org.apache.phoenix.end2end.index.SingleCellIndexIT; import org.apache.phoenix.jdbc.ConnectionInfo; import org.apache.phoenix.jdbc.PhoenixConnection; @@ -69,7 +69,9 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -@Category(ParallelStatsDisabledTest.class) +@Category(NeedsOwnMiniClusterTest.class) +@Ignore("Transform is under rework. The monitor tasks do not complete when this class shares a" + + " mini cluster with other classes.") public class TransformMonitorIT extends ParallelStatsDisabledIT { private static RegionCoprocessorEnvironment TaskRegionEnvironment;