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

ShardNotFound error when looking up replica set with hosts in a different order than is stored in the ShardRegistry

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.1
    • Component/s: Sharding
    • Labels:
      None
    • Sharding EMEA
    • ALL
    • Sharding 10 (02/19/16), Sharding 11 (03/11/16), Sharding 12 (04/01/16), Sharding 16 (06/24/16), Sharding 18 (08/05/16)

      We have a 4 shard cluster. We added 4 new shards. All operations that need to go against the entire cluster fail with errors of the following form.

      MongoDB Enterprise mongos> db.col.find({fplID:"301806213",phase:"C"}).explain()
      2016-02-01T11:07:36.498-0500 E QUERY    [thread1] Error: explain failed: {
              "code" : 70,
              "ok" : 0,
              "errmsg" : "Shard not found for server: amsp06xdt/goxsd3396:10051,goxsd3397:10021"
      } :
      _getErrorWithCode@src/mongo/shell/utils.js:23:13
      throwOrReturn@src/mongo/shell/explainable.js:34:1
      constructor/this.finish@src/mongo/shell/explain_query.js:176:24
      DBQuery.prototype.explain@src/mongo/shell/query.js:497:12
      @(shell):1:1
       
      MongoDB Enterprise mongos>
      

      Bouncing the mongos does not resolve the issue.
      We do not believe we are encountering SERVER-21906 .

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            shakir.sadikali@mongodb.com Shakir Sadikali
            Votes:
            3 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: