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

Donor does not create ttl index when shard split feature flag is disabled

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2022-03-07
    • 184

    Description

      When we added the tryForget command we added the creation of a TTLIndex for garbage collection. However in multiversion tests it can happen that one version of the ShardSplitDonorService which contains the feature will create the index and another version without the feature will not create the index. To solve this compatibility issue we should protect that index creation with the shard split feature flag and only create the index when that flag is enabled.

      We should implement a logic similar to the tenant migration donor service code or simply use the feature flag check like we already do here.

      Attachments

        Activity

          People

            mathis.bessa@mongodb.com Mathis Bessa
            mathis.bessa@mongodb.com Mathis Bessa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: