HBASE-18227 Fixed unit test hbase.coprocessor.TestCoprocessorMetrics#testRegionObserverAfterRegionClosed
Calling closeRegion() directly on remote server is not supported post-AMv2. Calling unassign() on master Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
cd478d1564
commit
b02d3d9ed5
|
@ -472,7 +472,7 @@ public class TestCoprocessorMetrics {
|
|||
// close one of the regions
|
||||
try (RegionLocator locator = connection.getRegionLocator(tableName)) {
|
||||
HRegionLocation loc = locator.getRegionLocation(foo);
|
||||
admin.closeRegion(loc.getServerName(), loc.getRegionInfo());
|
||||
admin.unassign(loc.getRegionInfo().getEncodedNameAsBytes(), true);
|
||||
|
||||
HRegionServer server = UTIL.getMiniHBaseCluster().getRegionServer(loc.getServerName());
|
||||
UTIL.waitFor(30000,
|
||||
|
|
Loading…
Reference in New Issue