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

Make replica set state changes take a write lock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.2.4, 2.4.0-rc1
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      tryToGoLiveAsASecondary needs to take a write lock. Otherwise, we could become primary between lines 562 and 590 of rs_sync.cpp and then immediately become a secondary, not closing connections if anyone is syncing from us (which they may have been simply doing already through chained replication).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kristina Kristina Chodorow
              Reporter:
              kristina Kristina Chodorow
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: