HBASE-10475 TestRegionServerCoprocessorExceptionWithAbort may timeout due to concurrent lease removal

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1565065 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-02-06 03:29:56 +00:00
parent 6905e533e3
commit e3136720ff
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ public class SimpleRegionObserver extends BaseRegionObserver {
// from external packages
RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
Leases leases = re.getRegionServerServices().getLeases();
leases.createLease("x", 2000, null);
leases.cancelLease("x");
leases.createLease(re.getRegion().getRegionNameAsString(), 2000, null);
leases.cancelLease(re.getRegion().getRegionNameAsString());
}
@Override