[SERVER-56881] _configsvrSetAllowMigrations can fail in concurrency with a setFCV Created: 12/May/21  Updated: 29/Oct/23  Resolved: 20/May/21

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

Type: Bug Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: [DO NOT USE] Backlog - Sharding EMEA
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0-Metadata-Format, post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-56957 Extend drop_database_sharded.js FSM t... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Participants:
Linked BF Score: 65

 Description   

_configsvrSetAllowMigrations runs a local txn in the config svr to change the 'allowMigrations' field and bump the collection version.
When the FCV document is updated as part of setFCV, the transactions are cancelled. This can make the setAllowMigrations command to fail.



 Comments   
Comment by Jordi Serra Torrens [ 20/May/21 ]

Since SERVER-57023 makes remote 'Interrupted' errors to be retried by the ShardingDDLCoordinator, this bug is resolved.

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