sbarnoud commented on a change in pull request #343: HBASE-22634 : Improve 
performance of BufferedMutator       
URL: https://github.com/apache/hbase/pull/343#discussion_r298086544
 
 

 ##########
 File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/SimpleRequestController.java
 ##########
 @@ -328,6 +346,16 @@ public void waitForFreeSlot(long id, int periodToTrigger, 
Consumer<Long> trigger
     waitForMaximumCurrentTasks(maxTotalConcurrentTasks - 1, id, 
periodToTrigger, trigger);
   }
 
+  @Override
+  public void waitForFreeSlot(int numberOfTask,long id, int periodToTrigger, 
Consumer<Long> trigger) throws InterruptedIOException {
+    waitForMaximumCurrentTasks(maxTotalConcurrentTasks - numberOfTask, id, 
periodToTrigger, trigger);
+  }
+
+  @Override
+  public void waitForAllFreeSlot(long id) throws InterruptedIOException {
+    waitForMaximumCurrentTasks(0, id, 1000000, null);
 
 Review comment:
   I change it to 0. This is unused as the trigger is null.

----------------------------------------------------------------
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