Class TestExportSnapshotHelpers

java.lang.Object
org.apache.hadoop.hbase.snapshot.TestExportSnapshotHelpers

public class TestExportSnapshotHelpers extends Object
Test Export Snapshot Tool helpers
  • Field Details

  • Constructor Details

  • Method Details

    • testBalanceSplit

      public void testBalanceSplit() throws Exception
      Verfy the result of getBalanceSplits() method. The result are groups of files, used as input list for the "export" mappers. All the groups should have similar amount of data. The input list is a pair of file path and length. The getBalanceSplits() function sort it by length, and assign to each group a file, going back and forth through the groups.
      Throws:
      Exception
    • verifyBalanceSplit

      private void verifyBalanceSplit(List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>> split, String[] expected, long expectedSize)