Github user vrozov commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1105#discussion_r173300621
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/work/fragment/FragmentExecutor.java
 ---
    @@ -231,9 +261,9 @@ public Void run() throws Exception {
               while (shouldContinue()) {
                 // Fragment is not cancelled
     
    -            if (eventProcessor.hasFinishedRequests()) {
    +            if (!recieverFinishedQueue.isEmpty()) {
    --- End diff --
    
    I don't think `isEmpty()` is necessary, it is the same as `poll() != null`.


---

Reply via email to