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

need better error messages when a shard is down

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: 3.0.0, 3.2.0, 3.4.0
    • Fix Version/s: None
    • Component/s: Usability
    • Labels:
      None

      Description

      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 : {}\" }"
      }
      

        Attachments

          Activity

            People

            Assignee:
            backlog-server-sharding Backlog - Sharding Team
            Reporter:
            dwight_10gen Dwight Merriman
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: