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

Allow the setAllowMigrations refresh to be sent to all shards in a backportable way

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • v7.0, v6.3
    • Sharding EMEA 2023-05-01

    Description

      SERVER-73984 changed setAllowMigrations to send the refresh to all shards. Because of a problem with views (SERVER-74313), this was introduced with a new feature flag to prevent getting invalid view definition when the refresh was sent to shards that did not know of the collection.

      However, implementing this with a feature flag means that it cannot be backported to 6.3 because the feature flag could be enabled with some shards still having the invalid view problem.

      This ticket is to implement this change in a different way so that the changes can be backported to 6.3. The logic can be implemented as the following:

      • Try unconditionally to call the command on all shards
      • If you get an invalid view error ---> try only on shards owning chunks

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: