/** * Test that puts up a regionserver, starts a compaction on a loaded region but holds the * compaction completion until after we have killed the server and the region has come up on * a new regionserver altogether. This fakes the double assignment case where region in one * location changes the files out from underneath a region being served elsewhere. */ @Test public void testFencingAroundCompactionAfterWALSync() throws Exception { for(MemoryCompactionPolicy policy : MemoryCompactionPolicy.values()) { doTest(BlockCompactionsInCompletionRegion.class, policy); } }
/** * Test that puts up a regionserver, starts a compaction on a loaded region but holds the * compaction until after we have killed the server and the region has come up on * a new regionserver altogether. This fakes the double assignment case where region in one * location changes the files out from underneath a region being served elsewhere. */ @Test public void testFencingAroundCompaction() throws Exception { for(MemoryCompactionPolicy policy : MemoryCompactionPolicy.values()) { doTest(BlockCompactionsInPrepRegion.class, policy); } }
/** * 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 */ @Test public void testReplayWorksThoughLotsOfFlushing() throws IOException { for(MemoryCompactionPolicy policy : MemoryCompactionPolicy.values()) { testReplayWorksWithMemoryCompactionPolicy(policy); } }
/** * Test that puts up a regionserver, starts a compaction on a loaded region but holds the * compaction until after we have killed the server and the region has come up on * a new regionserver altogether. This fakes the double assignment case where region in one * location changes the files out from underneath a region being served elsewhere. */ @Test public void testFencingAroundCompaction() throws Exception { for(MemoryCompactionPolicy policy : MemoryCompactionPolicy.values()) { doTest(BlockCompactionsInPrepRegion.class, policy); } }
/** * Test that puts up a regionserver, starts a compaction on a loaded region but holds the * compaction completion until after we have killed the server and the region has come up on * a new regionserver altogether. This fakes the double assignment case where region in one * location changes the files out from underneath a region being served elsewhere. */ @Test public void testFencingAroundCompactionAfterWALSync() throws Exception { for(MemoryCompactionPolicy policy : MemoryCompactionPolicy.values()) { doTest(BlockCompactionsInCompletionRegion.class, policy); } }
/** * 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 */ @Test public void testReplayWorksThoughLotsOfFlushing() throws IOException { CacheConfig.instantiateBlockCache(TEST_UTIL.getConfiguration()); for(MemoryCompactionPolicy policy : MemoryCompactionPolicy.values()) { testReplayWorksWithMemoryCompactionPolicy(policy); } }