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

Report a histogram of error codes rather than just an error counter in serverStatus

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch

      The idea is to replace something like

      errors: 5 

      with something more like

      errors: {
          26: 1,  /* NamespaceNotFound */
          50: 2,  /* MaxTimeMSExpired */
          59401: 2,  /* anonymous error code */
      }    

      We could do that both for this top level "asserts" section:

      "asserts" : {
                      "regular" : 0,
                      "warning" : 0,
                      "msg" : 0,
                      "user" : 0,
                      "tripwire" : 0,
                      "rollovers" : 0
              },
      

      But also for the "commands" section, or anywhere else we accumulate errors:

                      "commands" : {
                              "buildInfo" : {
                                      "failed" : NumberLong(0),
                                      "total" : NumberLong(3)
                              },
                              "createIndexes" : {
                                      "failed" : NumberLong(0),
                                      "total" : NumberLong(3)
                              },
                              "find" : {
                                      "failed" : NumberLong(0),
                                      "total" : NumberLong(21)
                              },
      

      This will help gather more insight into what kinds of things are going wrong. For example if we start to see a lot more of a particular error code after upgrading to a new version.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            1 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated: