[SERVER-47117] MaxTimeMSExpired returned on getMore command that follows HedgedReads find Created: 25/Mar/20  Updated: 29/Oct/23  Resolved: 16/Apr/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.4.0-rc3, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Service Arch 2020-04-06, Service arch 2020-04-20
Participants:
Linked BF Score: 36

 Description   

When a find command is hedged it adds a MaxTimeMS to the hedged request to avoid wasting resources on a long-running queries.
While NetworkInteface ignores the MaxTimeMSExpired error for hedged finds , it can not do so for getMore because this is a separate command and is not hedged.
However if there is a getMore followed the find it will inherit the leftover of MaxTimeMS, and will error when it expired.
This is a bug as the result depends on if it was run via hedged or non hedged path.



 Comments   
Comment by Githook User [ 23/Apr/20 ]

Author:

{'name': 'Misha Tyulenev', 'email': 'misha@mongodb.com', 'username': 'mikety'}

Message: SERVER-47117 clear maxTimeMSForHedgedReads delay from the getMore on hedge reads

(cherry picked from commit d05acff26c4c5a7fb27e9d0c7e31e4a3167fa7fe)
Branch: v4.4
https://github.com/mongodb/mongo/commit/7ee6f5f0157eea08876c705dcf6e02309d6153da

Comment by Githook User [ 16/Apr/20 ]

Author:

{'name': 'Misha Tyulenev', 'email': 'misha@mongodb.com', 'username': 'mikety'}

Message: SERVER-47117 clear maxTimeMSForHedgedReads delay from the getMore on hedge reads
Branch: master
https://github.com/mongodb/mongo/commit/d05acff26c4c5a7fb27e9d0c7e31e4a3167fa7fe

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