[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: |
|
||||||||||||||||||||
| 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: (cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d) |
| Comment by Githook User [ 21/Apr/23 ] |
|
Author: {'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}Message: (cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d) |
| Comment by Githook User [ 21/Apr/23 ] |
|
Author: {'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}Message: (cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d) |
| Comment by Githook User [ 21/Apr/23 ] |
|
Author: {'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}Message: (cherry picked from commit 0874f8f81e7a3b51cd3e5ca480bc0b2e27be050d) |
| Comment by Githook User [ 20/Apr/23 ] |
|
Author: {'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}Message: |