Skip to content

Commit

Permalink
HBASE-28405 Addendum use splitRegionAsync().get to get the split exce…
Browse files Browse the repository at this point in the history
…ption in tests

(cherry picked from commit a456bfb)
  • Loading branch information
Apache9 committed Apr 29, 2024
1 parent d01d1ff commit 0db9241
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.Coprocessor;
import org.apache.hadoop.hbase.CoprocessorEnvironment;
import org.apache.hadoop.hbase.DoNotRetryIOException;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HColumnDescriptor;
Expand Down Expand Up @@ -403,9 +402,10 @@ public boolean evaluate() throws Exception {
Collections.sort(hris, RegionInfo.COMPARATOR);
// verify that we cannot split
try {
ADMIN.split(tableTwo, Bytes.toBytes("6"));
ADMIN.splitRegionAsync(hris.get(1).getRegionName(), Bytes.toBytes("6")).get(10,
TimeUnit.SECONDS);
fail();
} catch (DoNotRetryIOException e) {
} catch (ExecutionException e) {
// Expected
}
Thread.sleep(2000);
Expand Down

0 comments on commit 0db9241

Please sign in to comment.