private void stopCompaction() {
    if (inMemoryCompactionInProgress.get()) {
      compactor.stop();
    }
  }
The request to cancel the compaction asynchronous task (caused by in-memory flush) The
compaction may still happen if the request was sent too late Non-blocking request
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactingMemStore.java