busbey commented on a change in pull request #1203: HBASE-23878 : Backport
HBASE-22040 to branch-2.1
URL: https://github.com/apache/hbase/pull/1203#discussion_r384560097
##########
File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
##########
@@ -1282,29 +1282,31 @@ void mergeRegions(byte[] nameOfRegionA, byte[]
nameOfRegionB,
/**
* Merge two regions. Asynchronous operation.
- *
* @param nameOfRegionA encoded or full name of region a
* @param nameOfRegionB encoded or full name of region b
- * @param forcible <code>true</code> if do a compulsory merge, otherwise we
will only merge
- * two adjacent regions
- * @throws IOException
+ * @param forcible <code>true</code> if do a compulsory merge, otherwise we
will only merge two
+ * adjacent regions
*/
- Future<Void> mergeRegionsAsync(
- byte[] nameOfRegionA,
- byte[] nameOfRegionB,
- boolean forcible) throws IOException;
+ default Future<Void> mergeRegionsAsync(byte[] nameOfRegionA, byte[]
nameOfRegionB,
+ boolean forcible) throws IOException {
+ byte[][] nameofRegionsToMerge = new byte[2][];
+ nameofRegionsToMerge[0] = nameOfRegionA;
+ nameofRegionsToMerge[1] = nameOfRegionB;
+ return mergeRegionsAsync(nameofRegionsToMerge, forcible);
+ }
/**
* Merge regions. Asynchronous operation.
- *
+ * <p/>
+ * You may get a {@code DoNotRetryIOException} if you pass more than two
regions in but the master
+ * does not support merging more than two regions. At least till 2.2.0, we
still only support
Review comment:
this version number will need to be updated
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services