Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3190

Invalid FragmentState transition from CANCELLATION_REQUESTED in QueryManager

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: Execution - Flow
    • Labels:
      None

      Description

      If a fragment is cancelled as soon as it starts running, there are two state change messages that are reported to the QueryManager: transition to RUNNING and transition to CANCELLATION_REQUESTED.

      The order of receiving these messages is not guaranteed because the messages can be reported from different threads. The QueryManager#FragmentStateListener does not check for a transition from CANCELLATION_REQUESTED to RUNNING. This state change should not happen in FragmentData#setStatus.

        Attachments

        1. DRILL-3190.1.patch.txt
          2 kB
          Sudheesh Katkam

          Activity

            People

            • Assignee:
              sudheeshkatkam Sudheesh Katkam
              Reporter:
              sudheeshkatkam Sudheesh Katkam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: