[SERVER-56955] Add safeguards to prevent NearStage from getting stuck Created: 14/May/21  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mihai Andrei Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: serverless-impact
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

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).


Generated at Thu Feb 08 05:40:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.