コード例 #1
0
 @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);
 }
コード例 #2
0
  @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);
  }
コード例 #3
0
 @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);
 }