[SERVER-76004] Remove incorrect sharding tassert in getOwnershipFilter function Created: 12/Apr/23  Updated: 29/Oct/23  Resolved: 21/Apr/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.0.0-rc0, 6.0.0-rc0, 7.0.0-rc0, 6.3.0-rc3
Fix Version/s: 7.0.0-rc0, 7.1.0-rc0, 6.0.6, 5.0.18, 6.3.2

Type: Bug Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-72532 CommandNotFound: no such command: 'sh... Closed
Problem/Incident
is caused by SERVER-50027 Freeze migrations on original sharded... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.3, v6.0, v5.0
Sprint: Sharding EMEA 2023-04-17, Sharding EMEA 2023-05-01
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-76004 Removing incorrect tassert

(cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d)
Branch: v5.0
https://github.com/mongodb/mongo/commit/151cfa0038a81b950408b585a60d7503cf9c1ef1

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-76004 Removing incorrect tassert

(cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d)
Branch: v6.0
https://github.com/mongodb/mongo/commit/850e0145d8490c1256c4dfaa21b42a0f105bae89

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-76004 Removing incorrect tassert

(cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d)
Branch: v6.3
https://github.com/mongodb/mongo/commit/6b2090557613b7d7bf4d660d3d899e111fda4eec

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-76004 Removing incorrect tassert

(cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d)
Branch: v7.0
https://github.com/mongodb/mongo/commit/ea9ecf656c158b6302b0c584e85ea5ea45a671b4

Comment by Githook User [ 20/Apr/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-76004 Removing incorrect tassert
Branch: master
https://github.com/mongodb/mongo/commit/0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d

Generated at Thu Feb 08 06:31:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.