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

Remove incorrect sharding tassert in getOwnershipFilter function

    • Fully Compatible
    • ALL
    • v7.0, v6.3, v6.0, v5.0
    • Sharding EMEA 2023-04-17, Sharding EMEA 2023-05-01

      This condition is checking that if the shardVersion attached to the command is ChunkVersion::IGNORED() for certain nss, the authoritative knowledge of the shard must state that the flag allowMigrations is unset or if this flag is set the collection must be unsharded. However this statement is wrong: it could totally happen that we process an update/delete operation that was targeting more than one shard outside a transaction (i.e. this request had a shardVersion : ChunkVersion::IGNORED()) while executing a DDL operation that had already stopped migrations for a certain sharded collection.

            Assignee:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: