-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
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.
- is related to
-
SERVER-87657 Collect query stats for commands which error
- Backlog
-
SERVER-65093 Count operation failures in serverStatus broken down by error code
- Open
- related to
-
SERVER-94409 Add ErrorCode counters to FTDC
- Open
-
SERVER-73561 Consider exception origin when counting assertions
- Closed
-
SERVER-78458 Allow statuses/assertions to have both a named error code and a unique number
- Closed