Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48689

MigrationDestinationManager waits for thread to join with session checked out

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.1, 4.4.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Sharding 2020-07-13, Sharding 2020-07-27
    • Linked BF Score:
      33

      Description

      The MigrationDestinationManager waits for a thread to join here while holding a session checked out. This thread can do blocking work, such as checking out a different session. This can lead to a deadlock with a thread that is checking out all of the sessions for kill:

      (1) MigrationDestinationManager checks out session A.
      (2) Killing thread marks all sessions as killed.
      (3) Killing thread waits to check out session A for kill.
      (4) _thread waits to check out session B, but is blocked because session B is marked as killed.
      (5) MigrationDestinationManager waits for _thread to join.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jack.mulrow Jack Mulrow
              Reporter:
              tess.avitabile Tess Avitabile
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: