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

    https://github.com/apache/drill/pull/503#discussion_r63302974
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java ---
    @@ -115,6 +115,8 @@
       private static final ObjectMapper MAPPER = new ObjectMapper();
       private static final long RPC_WAIT_IN_MSECS_PER_FRAGMENT = 5000;
     
    +  private Thread myThreadRef; // Thread that is currently executing the 
Foreman.
    --- End diff --
    
    Is it really necessary ? myThreadRef is used to force the foreman thread to 
throw an exception when calling moveToState. Any other thread will ignore that 
(no matter what value myThreadRef has) and block on the latch instead. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to