[SERVER-79609] Fix `findAndModify_upsert.js` test to accept StaleConfig error Created: 02/Aug/23  Updated: 29/Oct/23  Resolved: 08/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.1, 6.0.10, 5.0.21

Type: Task Priority: Major - P3
Reporter: Pau Baldillou Salse (Inactive) Assignee: Pau Baldillou Salse (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-78115 Shard primaries must commit a majorit... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0, v5.0
Sprint: Sharding EMEA 2023-08-21
Participants:
Linked BF Score: 25

 Description   

It can happen that due to the majority write need when getting metadata from CSRS, if replication is off due to a stepdown, findAndModify gets a StaleConfig error. This behaviour makes sense, so the test should be fixed.



 Comments   
Comment by Githook User [ 21/Aug/23 ]

Author:

{'name': 'Pau Baldillou Salse', 'email': 'pau.baldillou-salse@mongodb.com', 'username': ''}

Message: SERVER-79609 Modify test to accept StaleConfig error
Branch: v7.0
https://github.com/mongodb/mongo/commit/727662d890ce9a392a3bea72f57007cbe1388a9e

Comment by Githook User [ 09/Aug/23 ]

Author:

{'name': 'Pau Baldillou Salse', 'email': 'pau.baldillou-salse@mongodb.com', 'username': ''}

Message: SERVER-79609 Modify test to accept StaleConfig error
Branch: v5.0
https://github.com/mongodb/mongo/commit/053c0ffe8d8f399617064d38dbd08779634c403b

Comment by Githook User [ 09/Aug/23 ]

Author:

{'name': 'Pau Baldillou Salse', 'email': 'pau.baldillou-salse@mongodb.com', 'username': ''}

Message: SERVER-79609 Modify test to accept StaleConfig error
Branch: v6.0
https://github.com/mongodb/mongo/commit/2b030b08e9c65620cfa507f126eca9430219479b

Comment by Githook User [ 08/Aug/23 ]

Author:

{'name': 'Pau Baldillou Salse', 'email': '69910092+pbaldisa@users.noreply.github.com', 'username': 'pbaldisa'}

Message: SERVER-79609 Modify test to accept StaleConfig error
Branch: master
https://github.com/mongodb/mongo/commit/20f4e9734c1ad9e278ee1bbf36a439ca760b9bdf

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