[SERVER-74550] Make allow_partial_results_with_maxTimeMS.js more deterministic Created: 02/Mar/23  Updated: 29/Oct/23  Resolved: 10/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.3.0-rc2

Type: Improvement Priority: Major - P3
Reporter: Steve Tarzia Assignee: Steve Tarzia
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.3
Sprint: QE 2023-03-06, QE 2023-03-20
Participants:
Linked BF Score: 25

 Description   

cluster_find.cpp sets aside 10% of maxTimeMS for buffered partial results to be returned in the event of a MaxTimeMSExpired error with allowPartialResults set. If this 10% of time is inadequate then a MaxTimeMSExpired error is returned instead of the partial results that are available. This makes js integration testing difficult because we may never see the partial results that we expect.

The solution is likely some kind of failpoint to extent the time budget for returning buffered partial results.



 Comments   
Comment by Githook User [ 15/Mar/23 ]

Author:

{'name': 'Steve Tarzia', 'email': 'steve.tarzia@mongodb.com', 'username': 'starzia'}

Message: SERVER-74550 Reserve 25% of time budget for processing buffered partial results
Branch: v6.3
https://github.com/mongodb/mongo/commit/ca939e3cc87615cc33211efbc097283c5f53b68b

Comment by Githook User [ 09/Mar/23 ]

Author:

{'name': 'Steve Tarzia', 'email': 'steve.tarzia@mongodb.com', 'username': 'starzia'}

Message: SERVER-74550 Reserve 25% of time budget for processing buffered partial results
Branch: master
https://github.com/mongodb/mongo/commit/6ad46e570e1aa80fbe2e1ff8ac7715fe23448f0c

Generated at Thu Feb 08 06:27:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.