[SERVER-67477] Ensure range deletion index is created on addShard (6.0 only) Created: 23/Jun/22  Updated: 29/Oct/23  Resolved: 29/Jul/22

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

Type: Bug Priority: Major - P3
Reporter: Allison Easton Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-62805 Add local storage on shards for the s... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08
Participants:

 Description   

The index creation for range deletions happens in _shardingOnTransitionToPrimaryHook  however, this code will not be run in the case that a shard is added for the first time to a cluster using addShard because the ShardingState is not necessarily enabled when the hook is run.

This was fixed on version 6.1 by SERVER-62805 by checking if the node is a shard server instead of checking if the sharding state is enabled for index creation.

This ticket is to backport that fix to 6.0.



 Comments   
Comment by Allison Easton [ 29/Jul/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: 
SERVER-67477 Ensure range deletion index is created on addShard (6.0 only)
Branch: v6.0
https://github.com/mongodb/mongo/commit/1f0ba85eda9cff039b0edcfa32893822e6c205cc

Comment by Allison Easton [ 29/Jun/22 ]

The fix for this was added as a part of the commit for SERVER-62805, so this ticket is just to backport the fix to v6.0.

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