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

Make replica set state changes take a write lock

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.4, 2.4.0-rc1
    • Affects Version/s: 2.2.3
    • Component/s: Replication
    • Labels:
      None
    • ALL

      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).

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

              Created:
              Updated:
              Resolved: