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

Possible Deadlock in Partition Decorator Due To Shared ThreadPool With DataTunnel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The PartitionDecorator uses the DrillbitContext.getExecutor() threadpool for threads that send batches to downstream partitions. This threadpool is the same threadpool that is used for DataTunnel connections. This shared threadpool could cause a deadlock in the event where the number of partitions is greater than or equal to the max number of threads in the shared threadpool.

      A fix for this would be to have a separate thread pool for partition senders. A similar strategy is used for avoiding deadlocks in the scanners (there is a dedicated scanner thread pool).

      Attachments

        Activity

          People

            timothyfarkas Timothy Farkas
            timothyfarkas Timothy Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: