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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.1
    • Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08

    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.

      Attachments

        Issue Links

          Activity

            People

              allison.easton@mongodb.com Allison Easton
              allison.easton@mongodb.com Allison Easton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: