getLastError to Mongos gives an empty errmsg field if it fails

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We were performing a series of restarts of config servers and shards. While some of the servers were rebooting, mongos that used them occasionally returned the following error:

      { "ok" : 0.0, "errmsg" : "" }

      ).
      Our auto-retry framework relies on a set of error codes and/or messages and can't cope with such errors. Emitting a more descriptive error and assigning this kind of error an error code (even generic one) would be very helpful both for diagnosing reasons of the error and attempting to recover from it.

              Assignee:
              Randolph Tan
              Reporter:
              Aristarkh Zagorodnikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: