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

replSetMaintenance command does not take the RSTL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.4.2
    • Fix Version/s: 4.2.18, 5.0.3, 4.4.9, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0, v4.4, v4.2, v4.0
    • Sprint:
      Repl 2021-06-14, Repl 2021-06-28, Repl 2021-07-12, Repl 2021-07-26
    • Linked BF Score:
      174

      Description

      The replSetMaintenance command does not take the RSTL when changing replication state.

      This is problematic for operations that make assertions based on replication state. Operations that hold the RSTL assume that the state does not change.

      In one example, changing the replications state from SECONDARY to RECOVERYING in this way can fail an assertion in AutoGetCollectionForRead.

        Attachments

          Activity

            People

            Assignee:
            vishnu.kaushik Vishnu Kaushik
            Reporter:
            louis.williams Louis Williams
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: