Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-481

deadlock when removing allocation ask

    XMLWordPrintableJSON

Details

    Description

      A new deadlock was introduced in the scheduler as part of the refactor.

      The deadlock can occur when an allocationAsk is removed from an application while the application is scheduled at the same point in time.

      The removeAllocationAsk() call in the partitionContext is a write locked call taking the context lock it later tries to take the application write lock. While scheduling to check the nodes we are retrieving the node iterator from the partition. This retrieval is done by a write locked application which needs a read lock on the partition.

      The removal of the ask should not hold the write lock on the partition while updating the application. 

      Attachments

        Issue Links

          Activity

            People

              wilfreds Wilfred Spiegelenburg
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: