Skip to content
Open
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 @@ -32,6 +32,7 @@
import org.apache.hadoop.hbase.client.TableDescriptor;
import org.apache.hadoop.hbase.io.compress.Compression;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
import org.apache.phoenix.jdbc.PhoenixConnection;
import org.apache.phoenix.mapreduce.PhoenixSyncTableCheckpointOutputRow.Status;
import org.apache.phoenix.mapreduce.PhoenixSyncTableCheckpointOutputRow.Type;
Expand All @@ -44,14 +45,20 @@
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import org.apache.phoenix.thirdparty.com.google.common.collect.Maps;

/**
* Unit tests for PhoenixSyncTableOutputRepository and PhoenixSyncTableCheckpointOutputRow. Tests
* checkpoint table operations and data model functionality.
* Tests for PhoenixSyncTableOutputRepository and PhoenixSyncTableCheckpointOutputRow. Exercises
* checkpoint table operations and data model functionality against a real mini-cluster, so it runs
* under failsafe in its own fork (see {@link NeedsOwnMiniClusterTest}). Previously lived under
* src/test/java as a *Test, where bringing up an HBase + HDFS + ZK mini-cluster mid-life in a
* long-running, reuseForks=true surefire JVM was unreliable and produced 200s
* "Master not initialized" timeouts.
*/
public class PhoenixSyncTableOutputRepositoryTest extends BaseTest {
@Category(NeedsOwnMiniClusterTest.class)
public class PhoenixSyncTableOutputRepositoryIT extends BaseTest {

private Connection connection;
private PhoenixSyncTableOutputRepository repository;
Expand Down