@Test
  public void testFlushWithTableCompactionDisabled() throws Exception {
    TableDescriptor htd =
      TableDescriptorBuilder.newBuilder(tableName).setCompactionEnabled(false).build();
    TEST_UTIL.createTable(htd, new byte[][] { family }, null);

    // load the table
    for (int i = 0; i < blockingStoreFiles + 1; i++) {
      TEST_UTIL.loadTable(TEST_UTIL.getConnection().getTable(tableName), family);
      TEST_UTIL.flush(tableName);
    }

    // Make sure that store file number is greater than blockingStoreFiles + 1
    Path tableDir = CommonFSUtils.getTableDir(rootDir, tableName);
    Collection<String> hfiles = SnapshotTestingUtils.listHFileNames(fs, tableDir);
    assert (hfiles.size() > blockingStoreFiles + 1);
  }
Setup the config for the cluster
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactSplitThread.java