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

give correct error message when running initiate on a non-replset mongod

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Repl 11 (03/11/16)

    Description

      If you attempt to run replSetInitiate() on a mongod that was not started with --replSet, and this isn't for a CSRS upgrade, you will get a mysterious error message:

      { "ok" : 0, "errmsg" : "Missing expected field \"version\"", "code" : 93 }
      

      This is because we skip adding the version field for non-replsets, and we try to validate the config before we detect the issue.

      Attachments

        Issue Links

          Activity

            People

              benety.goh@mongodb.com Benety Goh
              milkie@mongodb.com Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: