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

need better error messages when a shard is down

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.0, 3.2.0, 3.4.0
    • Component/s: Usability
    • None
    • Sharding

      here we should show the hostname not the IP address. sometimes we do show the hostname. the shard was configured with a logical name no by ip. also it would be nice if we tell you which shard # this is.

      mongos> db.foo.ensureIndex({yy:1})
      socket exception [SEND_ERROR] for 10.4.1.53:27001
      mongos>
      

      also in the below it would be nice to say something like:

      "dm_hp:27001" : "Unreachable"

      rather than { }. if multiple shards down (imagine i have 300) that would be helpful.

      mongos> db.runCommand("dbstats")
      {
              "raw" : {
                      "s0/dm_hp:27000,dm_hp:27018" : {
                              "db" : "test",
                              "collections" : 3,
                              "objects" : 11,
                              "avgObjSize" : 13073.454545454546,
                              "dataSize" : 143808,
                              "storageSize" : 2310144,
                              "numExtents" : 4,
                              "indexes" : 3,
                              "indexSize" : 24528,
                              "fileSize" : 201326592,
                              "nsSizeMB" : 16,
                              "ok" : 1
                      },
                      "dm_hp:27001" : {
      
                      }
              },
              "ok" : 0,
              "errmsg" : "{ dm_hp:27001: \"result without error message returned : {}\" }"
      }
      

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: