@Override
      public void storeFile(final SnapshotProtos.SnapshotRegionManifest.Builder region,
        final SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder family,
        final StoreFileInfo storeFile) throws IOException {
        try {
          LOG.debug("Introducing delay before adding store file to manifest");
          Thread.sleep(2000);
        } catch (InterruptedException ex) {
          LOG.error("Interrupted due to error: " + ex);
        }
        super.storeFile(region, family, storeFile);
      }
Tests adding a region to the snapshot manifest while compactions are running on the region. The
idea is to slow down the process of adding a store file to the manifest while triggering
compactions on the region, allowing the store files to be marked for archival while snapshot
operation is running. This test checks for the correct behavior in such a case that the
compacted files should not be moved around if a snapshot operation is in progress. See
HBASE-18398
hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRegionSnapshotTask.java