[SERVER-77230] Retry search/planShardedSearch commands when there is a network error Created: 17/May/23  Updated: 29/Oct/23  Resolved: 09/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.7, 7.0.0-rc4

Type: Improvement Priority: Major - P3
Reporter: Xiaobo Zhou Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0
Sprint: Service Arch 2023-05-29, Service Arch 2023-06-12
Participants:

 Description   

This is required by hot-restart support in Search Envoy. (CLOUDP-175049) The implementation need to be backported to 6.0.

 

If a search/planShardedSearch command fails with a network error (i.e. connection closed before mongos/mongod receives a response), the command will be retried at least once.

 

The retry loop will be applied to all the search/planShardedSearch requests. No other protocol changes are required.



 Comments   
Comment by Githook User [ 14/Jun/23 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-77230 Retry search/planShardedSearch commands once when there is a network error

(cherry picked from commit b0c53a92071e336d67425aba067710d62786be76)
Branch: v6.0
https://github.com/mongodb/mongo/commit/9008ac53e93bd28fd9de7d78875fd00083232868

Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-77230 Retry search/planShardedSearch commands once when there is a network error

(cherry picked from commit b0c53a92071e336d67425aba067710d62786be76)
Branch: v7.0
https://github.com/mongodb/mongo/commit/8ec45b5ec9f199cb4391a768a045b99aa885b2c8

Comment by Githook User [ 08/Jun/23 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-77230 Retry search/planShardedSearch commands once when there is a network error
Branch: master
https://github.com/mongodb/mongo/commit/b0c53a92071e336d67425aba067710d62786be76

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