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_r384565091
 
 

 ##########
 File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncAdmin.java
 ##########
 @@ -474,8 +475,22 @@
    * @param forcible true if do a compulsory merge, otherwise we will only 
merge two adjacent
    *          regions
    */
-  CompletableFuture<Void> mergeRegions(byte[] nameOfRegionA, byte[] 
nameOfRegionB,
-      boolean forcible);
+  default CompletableFuture<Void> mergeRegions(byte[] nameOfRegionA, byte[] 
nameOfRegionB,
+      boolean forcible) {
+    return mergeRegions(Arrays.asList(nameOfRegionA, nameOfRegionB), forcible);
+  }
+
+  /**
+   * Merge regions.
+   * <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

Reply via email to