Skip to content

Commit

Permalink
HBASE-28663 Graceful shutdown of CanaryTool timeouts (ADDENDUM)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-c-manning authored and virajjasani committed Jun 19, 2024
1 parent 32125e9 commit 353675e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.HRegionInfo;
import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.ColumnFamilyDescriptor;
Expand Down Expand Up @@ -150,7 +151,7 @@ public void testCanaryStopsScanningAfterTimeout() throws Exception {
assertTrue("verify table has multiple regions", regions.size() > 1);
HRegionServer regionserver = testingUtility.getMiniHBaseCluster().getRegionServer(0);
for (RegionInfo region : regions) {
closeRegion(testingUtility, regionserver, region);
closeRegion(testingUtility, regionserver, new HRegionInfo(region));
}

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

0 comments on commit 353675e

Please sign in to comment.