Details
-
New Feature
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
None
-
Query Execution
Description
Currently, it is quite tricky for the developer to debug SBE plans. While we have some existing solutions like SBE plan debug print and execution stats, it is not possible to accurately reconstruct history of plan execution from them.
As a Skunkworks project, nikita.lapkov developed a tool to solve this problem, SBE Flight Recorder. This tool allows the developer to view history of SBE plan execution and inspect:
- returned PlanState s from PlanStages
- values of slots and expressions
- state of SBE VM stack during instruction execution
After the presentation of the solution, SBE team agreed that this tool would be useful for the debugging of SBE plans in the future. We should integrate SBE Flight Recorder into our codebase. Currently, the code for it is stored in a separate branch: https://github.com/laplab/mongo/tree/flight-recorder