starting server with wrong replSet doesn't refuse

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.8, 2.6.3
    • Component/s: Replication
    • None
    • Minor Change
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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" }
      

            Assignee:
            Unassigned
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: