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:
parent
6905e533e3
commit
e3136720ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue