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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: