Fix deadlock during stepdown caused by session checkout in clone command

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability 13Apr-27Apr
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The resharding clone command under featureFlagReshardingInitNoRefresh holds a session checkout and becomes blocked during stepdown due to a deadlock. The issue occurs because the clone command does not pass an Interruptible parameter to the SemiFuture::get() call, preventing it from responding to interruptions and releasing the session.

      The fix is to update the clone command to pass opCtx as the Interruptible parameter to .get(), ensuring proper interruption handling and breaking the deadlock. This aligns with the approach used for ddl commands using operationSessionInfo.

            Assignee:
            Kruti Shah
            Reporter:
            Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: