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

Ignore the `collMod` response from the DBPrimary shard if it has no chunks

    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.1, v7.0, v6.0
    • Sharding EMEA 2023-09-18, Sharding EMEA 2023-10-02
    • 3

      Collmod is designed to be propagated to all the shards owning chunks and to the DBPrimary shard (that's because we need to keep a copy of the collection metadata on the DBPrimary for design purposes).

      However, the createIndex command is only targeting all the shards owning chunks, skipping the DBPrimary if it doesn't own any chunks.

      So, if a collmod is called over an index that is not present on the DBPrimary, it will fail with a NoIndexFound error.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: