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

    https://github.com/apache/drill/pull/503#discussion_r63442039
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java ---
    @@ -296,7 +295,7 @@ public void run() {
            * would wait on the cancelling thread to signal a resume and the 
cancelling thread would wait on the Foreman
            * to accept events.
            */
    -      acceptExternalEvents.countDown();
    +      stateSwitch.start();
    --- End diff --
    
    This defers all state transitions until the thread is done. This changes 
the behavior when queuing is enabled, the user will not know if the query has 
moved from ENQUEUED to STARTING.


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