public void waitForFlushes() {
    waitForFlushes(0);// Unbound wait
  }
Wait for all current flushes of the region to complete
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java