-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
InĀ SERVER-90282, we added diagnostic printing on tassert and invariants to print the original find command BSON.
We should consider logging plan cache information for the current query. This would be helpful for diagnosing failures in customer clusters. Dumping the entire state of the plan cache is infeasible as it may be quite large, especially in the case of the SBE plan cache.
This is a controversial idea because the plan cache is complex structure protected by mutexes. Accessing it during the handling of a tassert/invariant may cause deadlocks, tripping another tassert/invariant, reading data in a bad state, etc. We'd need to think carefully about how to mitigate these risks.
- related to
-
SERVER-91686 Improve mongod's signal handler to print out current thread's command object
- Closed
-
SERVER-93194 Extend tassert diagnostic logging to include catalog information
- Open
-
SERVER-90282 Add more diagnostics to tassert failures
- Closed