Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67477

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

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

      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@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: