void setStoreFlushCtx(StoreFlushContext storeFlushCtx) {
        this.storeFlushCtx = storeFlushCtx;
      }
Test for Bug 2 of HBASE-10466. "Bug 2: Conditions for the first flush of region close
(so-called pre-flush) If memstoreSize is smaller than a certain value, or when region close
starts a flush is ongoing, the first flush is skipped and only the second flush takes place.
However, two flushes are required in case previous flush fails and leaves some data in
snapshot. The bug could cause loss of data in current memstore. The fix is removing all
conditions except abort check so we ensure 2 flushes for region close."
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java