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

Integrate SBE Debugger into the codebase

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major - P3 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:

      1. returned PlanState s from PlanStages
      2. values of slots and expressions
      3. 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

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            nikita.lapkov@mongodb.com Nikita Lapkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: