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

Consider refactoring SBE PlanStage yield preparation & recovery logic

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution

      Currently, all SBE PlanStages inherit from the "CanChangeState" CRTP class, providing saveState() and restoreState() methods.

      Once the logic for making copies of unowned data and disabling slot access has been removed, only nodes which access storage resources will need non-trivial implementations of saveState() and restoreState(), in order to check if the collection has been dropped during a yield, for example.

      This gives an opportunity to refactor the saveState() and restoreState() mechanism. For example, we may want to only provide these methods on nodes which access storage resources, and remove the recursive walk of the execution tree.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: