[SERVER-77778] Test targeter refreshing when we receive stale config errors from the shards Created: 04/Jun/23  Updated: 22/Jan/24  Resolved: 22/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: PM Bot Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: autogen-todo, milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-72790 Handle stale config errors and refres... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-06-12, Repl 2023-06-26, Repl 2023-07-10, Repl 2023-07-24, Repl 2023-08-07, Repl 2024-02-05
Participants:

 Description   

We have a few unit tests that mock a shard response when mongos sends a bulkWrite command. This is to test that mongos, when it receives a stale config error response from the shard, refreshes itself, and additionally, when the number of refresh attempts exceeds kMaxRoundsWithoutProgress, we return a NoProgressMade error. See here for more info.

Note that we already have an integration JS test for stale config errors here, so we don't really need to test that. What we need to test is regarding the number of refreshes.

Original generated JIRA text:
There is a TODO in the codebase referencing a resolved ticket which is assigned to you.

Please follow this link to see the lines of code referencing this resolved ticket:
https://github.com/mongodb/mongo/search?q=SERVER-72790&type=Code

The next steps for this ticket are to either remove the outdated TODO or follow the steps in the TODO if it is correct. If the latter, please update the summary and description of this ticket to represent the work you're actually doing.



 Comments   
Comment by Githook User [ 20/Jan/24 ]

Author:

{'name': 'seanzimm', 'email': '102551488+seanzimm@users.noreply.github.com', 'username': 'seanzimm'}

Message: SERVER-77778: Add test for kMaxRoundsWithoutProgress for bulkWrite stale shard version (#18158)

GitOrigin-RevId: c35641701be7c81781e3159840e3992706d95481
Branch: master
https://github.com/mongodb/mongo/commit/eeaffc99034a9fa84e0d875b40e2eb9b176b2791

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