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

External Sort does not recognize query cancellation during long events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8.0
    • None
    • None
    • None

    Description

      The external sort operator performs in-memory or on-disk sorting. Several functions within external sort can take an extended time. During this time, the operator does not check if a query cancellation has occurred. These long events are:

      • Spilling a group of batches to disk
      • In-memory sort

      Note that "re-spilling" of spill files is covered by the first item above: re-spill uses the same code to write the new file as is used for the original "first generation" spill files.

      Also, the final merge is handled because the downstream operator will check for cancellation prior to fetching each batch from the sort operator.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul-rogers Paul Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: