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

Stepdown can deadlock with curOp + resharding.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0
    • 200

      Deadlock is between

      (a) Stepdown thread takes RSTL in modeX, then tries to get PrimaryOnlyService _mutex when calling PrimaryOnlyService::onStepDown.

      and

      (b) thread that calls currentOp, takes PrimaryOnlyService _mutex while in PrimaryOnlyService::reportInstanceInfoForCurrentOp and trying to get collection IS lock in ReshardingRecipientService::RecipientStateMachine::_tryFetchBuildIndexMetrics

            Assignee:
            Unassigned Unassigned
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: