accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] jschmidt10 commented on a change in pull request #402: ACCUMULO-4615: Updated get status for thread safety and with a per-task timeout
Date Mon, 26 Mar 2018 00:03:08 GMT
jschmidt10 commented on a change in pull request #402: ACCUMULO-4615: Updated get status for
thread safety and with a per-task timeout
URL: https://github.com/apache/accumulo/pull/402#discussion_r176959716
 
 

 ##########
 File path: server/master/src/main/java/org/apache/accumulo/master/TimeoutTaskExecutor.java
 ##########
 @@ -121,25 +123,43 @@ public void onTimeout(TimeoutCallback<C> timeoutCallback) {
    * @throws IllegalStateException
    *           If all of the callbacks were not registered before calling this method.
    * @throws InterruptedException
-   *           If interrupted while awaiting callable results.
+   *           If interrupted while awaiting trackingCallable results.
    */
   public void complete() throws InterruptedException {
     Preconditions.checkState(successCallback != null, "Must set a success callback before
completing " + this);
     Preconditions.checkState(exceptionCallback != null, "Must set an exception callback before
completing " + this);
     Preconditions.checkState(timeoutCallback != null, "Must set a timeout callback before
completing " + this);
 
+    while (hasUnfinishedTasks()) {
 
 Review comment:
   Good call. I opted to use a BlockingQueue so I didn't have to implement my own waiting.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message