Index: hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java =================================================================== --- hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java (revision 1480703) +++ hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java (working copy) @@ -240,16 +240,16 @@ TEST_UTIL.createTable(TABLE_NAME, FAMILY); HTable table = new HTable(c, TABLE_NAME); LOG.info("Loading test table"); - // Load some rows - TEST_UTIL.loadNumericRows(table, FAMILY, 0, FIRST_BATCH_COUNT); // Find the region List testRegions = TEST_UTIL.getMiniHBaseCluster().findRegionsForTable(TABLE_NAME); assertEquals(1, testRegions.size()); compactingRegion = (CompactionBlockerRegion)testRegions.get(0); + LOG.info("Blocking compactions"); + compactingRegion.stopCompactions(); + // Load some rows + TEST_UTIL.loadNumericRows(table, FAMILY, 0, FIRST_BATCH_COUNT); assertTrue(compactingRegion.countStoreFiles() > 1); final byte REGION_NAME[] = compactingRegion.getRegionName(); - LOG.info("Blocking compactions"); - compactingRegion.stopCompactions(); LOG.info("Asking for compaction"); admin.majorCompact(TABLE_NAME); LOG.info("Waiting for compaction to be about to start");