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

starting server with wrong replSet doesn't refuse

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.8, 2.6.3
    • Replication
    • None
    • Minor Change
    • ALL

    Description

      I had a server member of replSet asyaRS.

      I restarted the mongod with --replSet NotAsya and it happily came up and identified itself as member of asyaRS (since local already had the repl set config there).

      It would be safer if we instead complained about replSet argument on command line not matching the stored one.

      > rs.conf()._id
      asyaRS
      > rs.status().set
      asyaRS
      > db.serverCmdLineOpts().parsed.replication
      { "replSet" : "NotAsya" }

      Attachments

        Activity

          People

            Unassigned Unassigned
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: