Class TestRecoveredEdits

java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRecoveredEdits

public class TestRecoveredEdits extends Object
Tests around replay of recovered.edits content.
  • Field Details

  • Constructor Details

  • Method Details

    • setUpBeforeClass

      public static void setUpBeforeClass() throws Exception
      Name of table mentioned edits from recovered.edits
      Throws:
      Exception
    • testReplayWorksThoughLotsOfFlushing

      HBASE-12782 ITBLL fails for me if generator does anything but 5M per maptask. Create a region. Close it. Then copy into place a file to replay, one that is bigger than configured flush size so we bring on lots of flushes. Then reopen and confirm all edits made it in.
      Throws:
      IOException
    • testReplayWorksWithMemoryCompactionPolicy

      private void testReplayWorksWithMemoryCompactionPolicy(org.apache.hadoop.hbase.MemoryCompactionPolicy policy) throws IOException
      Throws:
      IOException
    • verifyAllEditsMadeItIn

      public static int verifyAllEditsMadeItIn(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path edits, org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException
      Returns Return how many edits seen.
      Throws:
      IOException