@Override
 public void postSplit(ObserverContext<RegionCoprocessorEnvironment> e, HRegion l, HRegion r)
     throws IOException {
   if (LOG.isDebugEnabled()) SpliceLogUtils.debug(LOG, "BackupEndpointObserver.postSplit()");
   isSplitting = false;
   super.postSplit(e, l, r);
 }
  @Override
  public void preSplit(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException {
    if (LOG.isDebugEnabled()) SpliceLogUtils.debug(LOG, "BackupEndpointObserver.preSplit()");

    BackupUtils.waitForBackupToComplete(tableName, regionName, path);
    isSplitting = true;
    super.preSplit(e);
  }
 @Override
 public void preCompactSelection(
     ObserverContext<RegionCoprocessorEnvironment> c, Store store, List<StoreFile> candidates)
     throws IOException {
   if (LOG.isDebugEnabled())
     SpliceLogUtils.debug(LOG, "BackupEndpointObserver.preCompactSelection()");
   BackupUtils.waitForBackupToComplete(tableName, regionName, path);
   super.preCompactSelection(c, store, candidates);
 }