Ensure range deletion index is created on addShard (6.0 only)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Allison Easton
              Reporter:
              Allison Easton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: