[SERVER-83874] Move primary operation doesn't drop db.system.views on the donor Created: 05/Dec/23 Updated: 03/Jan/24 Resolved: 14/Dec/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.6, 6.0.12, 7.0.4, 7.2.0-rc3 |
| Fix Version/s: | 7.2.1, 7.3.0-rc0, 6.0.13, 5.0.24, 7.0.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Silvia Surroca | Assignee: | Silvia Surroca |
| 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.2, v7.0, v6.0, v5.0
|
||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||
| Sprint: | CAR Team 2023-12-25 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||
| Description |
|
The movePrimay donor performs a drop of all the cloned collections at the end of the DDL operation. Currently, the drop of <db>.system.views collection may fail if sharded views live on the donor shard. The error msg of the drop is this: "cannot drop collection <nss> when time-series collections are present". Therefore, if another movePrimary tries to move back the DBPrimary to the original shard, the operation will fail with the error "Found orphaned collection <db>.system.views on recipient" error. To fix it, we need to force the drop of any system collections on MovePrimaryCoordinator::dropStaleDataOnDonor(). |
| Comments |
| Comment by Githook User [ 03/Jan/24 ] |
|
Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}Message: GitOrigin-RevId: d929e2980ca1eb4a342048ba7a8041f055c61b37 |
| Comment by Githook User [ 02/Jan/24 ] |
|
Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}Message: GitOrigin-RevId: 5947f85f4e0d93556befac3940e0c0b3486aa4a4 |
| Comment by Githook User [ 02/Jan/24 ] |
|
Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}Message: (cherry picked from commit e5c597842397080d3c446a4535d5720f54e02835) |
| Comment by Githook User [ 02/Jan/24 ] |
|
Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}Message: GitOrigin-RevId: 2635f414129539562f0cfd1871cb1c729927e296 |
| Comment by Githook User [ 14/Dec/23 ] |
|
Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}Message: GitOrigin-RevId: 04f3688562f98359e27654086e84b3ebdf402548 |