@Test
  public void testRequestOnRegion() throws IOException, InterruptedException {
    Tracker tracker = new Tracker();
    TRACKER = tracker;
    region.requestCompaction("test", Store.PRIORITY_USER, false, tracker);
    tracker.await();
    assertEquals(1, tracker.notExecutedStores.size());
    assertEquals(Bytes.toString(CF2),
      tracker.notExecutedStores.get(0).getFirst().getColumnFamilyName());
    assertThat(tracker.notExecutedStores.get(0).getSecond(),
      containsString("compaction request was cancelled"));

    assertEquals(1, tracker.beforeExecuteStores.size());
    assertEquals(Bytes.toString(CF1), tracker.beforeExecuteStores.get(0).getColumnFamilyName());

    assertEquals(1, tracker.afterExecuteStores.size());
    assertEquals(Bytes.toString(CF1), tracker.afterExecuteStores.get(0).getColumnFamilyName());
  }
Confirm that the function of CompactionLifeCycleTracker is OK as we do not use it in our own
code.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactionLifeCycleTracker.java