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

Running enablesharding using 2.8 mongods with 2.6 mongos fails with obscure message

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:

      Description

      If you have a sharded cluster with 2.8 mongod shards and a 2.6 mongos, running enablesharding will result in a very confusing message:

      Error: command { "enablesharding" : "test" } failed: {
              "code" : 13111,
              "ok" : 0,
              "errmsg" : "exception: error creating initial database config information :: caused by :: field not found, expected type 8"
      }

      It would be nice if there was a way to detect this situation and alert users to the fact that they need to upgrade all their mongos instances before any of their mongod instances.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              renctan Randolph Tan
              Reporter:
              andrew.emil@10gen.com Andrew Emil
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: