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

Make replica set state changes take a write lock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.2.4, 2.4.0-rc1
    • 2.2.3
    • 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

        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: