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

Make replica set state changes take a write lock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.2.3
    • 2.2.4, 2.4.0-rc1
    • Replication
    • None
    • 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

              kristina Kristina Chodorow (Inactive)
              kristina Kristina Chodorow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: