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

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

      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.

        1. enablesharding_repro.js
          0.2 kB
          Andrew Emil

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            andrew.emil@10gen.com Andrew Emil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: