Skip to content

Commit 353675e

Browse files
d-c-manningvirajjasani
authored andcommitted
HBASE-28663 Graceful shutdown of CanaryTool timeouts (ADDENDUM)
1 parent 32125e9 commit 353675e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hbase-server/src/test/java/org/apache/hadoop/hbase/tool/TestCanaryTool.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.apache.hadoop.hbase.HBaseConfiguration;
4646
import org.apache.hadoop.hbase.HBaseTestingUtility;
4747
import org.apache.hadoop.hbase.HConstants;
48+
import org.apache.hadoop.hbase.HRegionInfo;
4849
import org.apache.hadoop.hbase.ServerName;
4950
import org.apache.hadoop.hbase.TableName;
5051
import org.apache.hadoop.hbase.client.ColumnFamilyDescriptor;
@@ -150,7 +151,7 @@ public void testCanaryStopsScanningAfterTimeout() throws Exception {
150151
assertTrue("verify table has multiple regions", regions.size() > 1);
151152
HRegionServer regionserver = testingUtility.getMiniHBaseCluster().getRegionServer(0);
152153
for (RegionInfo region : regions) {
153-
closeRegion(testingUtility, regionserver, region);
154+
closeRegion(testingUtility, regionserver, new HRegionInfo(region));
154155
}
155156

156157
// Run CanaryTool with 1 thread. This thread will attempt to scan the first region.

0 commit comments

Comments
 (0)