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

PartitionerDecorator may close partitioners while CustomRunnable are active during query cancellation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: None
    • Labels:

      Description

      During query cancellation, in case PartitionerDecorator.executeMethodLogic() is active (waiting on the latch), the wait will be interrupted and Futures cancelled, but there is no guarantee that all CustomRunnable terminate before returning from PartitionerDecorator.executeMethodLogic(). On exit, both income and outgoing batches are cleared, leading to clearing of underlying Vectors and DrillBufs. This eventually causes unallocated memory access and JVM crash as CustomRunnable may execute after income/outgoing batches are cleared.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              vrozov Vlad Rozov
              Reporter:
              vrozov Vlad Rozov
              Reviewer:
              Parth Chandra

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment