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

Race condition when adding hosts to a replica set

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Shell
    • None
    • Fully Compatible
    • ALL

    Description

      rs.reconfig() blindly updates the version to the current version + 1. This makes sense if the user doesn't specify a version already, however if the user is providing the version it should be respected. This can lead to race conditions where two or more users update and overwrite each others changes.

      I've verified that replSetReconfig command does the right thing (both anecdotaly and in code https://github.com/mongodb/mongo/blob/master/db/repl/rs_config.cpp#L244-248).

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            sphing Victor G Estevez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: