[SERVER-81033] Ignore the `collMod` response from the DBPrimary shard if it has no chunks Created: 13/Sep/23 Updated: 16/Nov/23 Resolved: 19/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 7.2.0-rc0 |
| Fix Version/s: | 7.2.0-rc0, 7.0.3, 6.0.12 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Silvia Surroca | Assignee: | Pol Pinol |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | shardingemea-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Backport Requested: |
v7.1, v7.0, v6.0
|
||||||||||||||||||||||||||||
| Sprint: | Sharding EMEA 2023-09-18, Sharding EMEA 2023-10-02 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||
| Description |
|
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. |
| Comments |
| Comment by Githook User [ 17/Oct/23 ] |
|
Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}Message: (cherry picked from commit eec54ec63e557e18f0e8361335b9a39887572b4d)
(cherry picked from commit 76ef13cd2ef0798606f8387a088a1edff1093d9a) |
| Comment by Githook User [ 04/Oct/23 ] |
|
Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}Message: (cherry picked from commit eec54ec63e557e18f0e8361335b9a39887572b4d)
(cherry picked from commit 76ef13cd2ef0798606f8387a088a1edff1093d9a) |
| Comment by Githook User [ 04/Oct/23 ] |
|
Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}Message: (cherry picked from commit eec54ec63e557e18f0e8361335b9a39887572b4d)
(cherry picked from commit 76ef13cd2ef0798606f8387a088a1edff1093d9a) |
| Comment by Githook User [ 19/Sep/23 ] |
|
Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}Message: |