[SERVER-55146] Bump collection version on any modification of config.collections reshardingFields or allowMigrations fields Created: 11/Mar/21  Updated: 29/Oct/23  Resolved: 18/Mar/21

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: PM-234-Catalog-Work
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-53539 TypeCollectionReshardingFields are in... Closed
is depended on by SERVER-54583 Relax implementation of getDatabaseWi... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Any modification of config.collections 'reshardingFields' or 'allowMigrations' field should, in a txn, also bump the collection version. Otherwise, this invariant can be tripped. 

Additionally, this comparison (which is used in the invariant mentioned above) is wrong and needs to be fixed.



 Comments   
Comment by Githook User [ 18/Mar/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-55146: Bump collection version on any modification of config.collections reshardingFields or allowMigrations fields
Branch: master
https://github.com/mongodb/mongo/commit/6c3c2cd287996ccc1821b7f04595edc7a4be3104

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