[SERVER-36325] mongos will not retry configsvrShardCollection when it gets a not master error calling listIndexes Created: 27/Jul/18  Updated: 06/Dec/22  Resolved: 27/Jul/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.1.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-30949 listCollections command through mongo... Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:

 Description   

This is because configsvrShardCollection uses ScopedDBConnection to send the listIndexes command. When it gets a NotMaster error, it will convert it into it's own error code here. And this makes the error "non-retryable" since the custom error code is not in the list of retryable errors.


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