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

Add safeguards to prevent NearStage from getting stuck

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution

      In SERVER-56928, an issue caused a $near query to get stuck by continually adding OrderedIntervals to 'NearStage::_childrenIntervals' until the server crashed with an OOM error. Though the root cause is known and a fix was merged, this sort of scenario could play out in the future with other geospatial query bugs. As such, we should add some sort of safeguard that could detect that the NearStage is making no progress and raise a Query fatal error (as opposed to allowing the query to run until an OOM error is raised and the server stops running).

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: