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

    https://github.com/apache/drill/pull/1113#discussion_r168935308
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/QueryStateProcessor.java
 ---
    @@ -125,20 +125,17 @@ public void cancel() {
           case PREPARING:
           case PLANNING:
           case ENQUEUED:
    -        moveToState(QueryState.CANCELLATION_REQUESTED, null);
    -        return;
    -
           case STARTING:
           case RUNNING:
    -        addToEventQueue(QueryState.CANCELLATION_REQUESTED, null);
    -        return;
    +        moveToState(QueryState.CANCELLATION_REQUESTED, null);
    --- End diff --
    
    @arina-ielchiieva Please update JIRA title.


---

Reply via email to