void compactStore(byte[] family, ThroughputController throughputController) throws IOException {
    HStore s = getStore(family);
    Optional<CompactionContext> compaction = s.requestCompaction();
    if (compaction.isPresent()) {
      compact(compaction.get(), s, throughputController, null);
    }
  }
This is a helper function that compact the given store.
<p>
It is used by utilities and testing
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java