[SERVER-63327] Remove usages of the StaleShardVersion error code from the migrations path Created: 05/Feb/22  Updated: 29/Oct/23  Resolved: 11/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-2144-Milestone-0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63331 Use a proper IDL structure for the wr... Closed
is depended on by SERVER-58116 StaleShardVersion error not triggerin... Closed
Problem/Incident
causes SERVER-64558 Wait for db critical section on Stale... Closed
causes DRIVERS-2387 Spec test "change stream resumes afte... Closed
Related
related to SERVER-64449 Get rid of the StaleShardVersion exce... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-02-21, Sharding EMEA 2022-03-07, Sharding EMEA 2022-03-21
Participants:

 Description   

The StaleShardVersion error code has been supplanted by StaleConfig which contains a lot more information necessary in order to advance the logical clock of the collection versions. From 6.0 onward there should be no new usages of StaleShardVersion and instead everything should use StaleConfig which eventually will become on par with WriteConflictException.

This ticket is about switching all non-backwards compatibility-breaking usages of StaleShardVersion to StaleConfig in preparation for throwing it out in 6.1.



 Comments   
Comment by Githook User [ 11/Mar/22 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-63327 Remove usages of StaleShardVersion from the migrations path
Branch: master
https://github.com/mongodb/mongo/commit/8ff255e3b85a0f4c74c2fa3842e292076926c6ff

Comment by Githook User [ 10/Mar/22 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-63327 Make the Stale* exception handling uniform in all code paths
Branch: master
https://github.com/mongodb/mongo/commit/d03d37af8b5ef60d828579e537ae0aab1f290719

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