Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down Expand Up @@ -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)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down Expand Up @@ -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("");
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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");
}
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
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.index.SingleCellIndexIT;
import org.apache.phoenix.jdbc.ConnectionInfo;
Expand All @@ -64,8 +65,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;

@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;

Expand Down Expand Up @@ -245,6 +251,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);
}
Expand Down Expand Up @@ -328,11 +335,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);
}
Expand Down Expand Up @@ -382,6 +391,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();
Expand Down Expand Up @@ -505,6 +515,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)) {
Expand Down Expand Up @@ -634,6 +645,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);
Expand Down Expand Up @@ -674,6 +686,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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
Loading