[SERVER-81371] movePrimary's clone phase failure may be retried indefinitely if database contains sharded views Created: 22/Sep/23  Updated: 23/Nov/23  Resolved: 21/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.0.2, 7.1.0-rc3, 7.2.0-rc1
Fix Version/s: 7.3.0-rc0, 7.2.0-rc2, 7.0.5

Type: Bug Priority: Major - P3
Reporter: Silvia Surroca Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: bkp, shardingemea-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File repro.diff    
Issue Links:
Backports
Depends
is depended on by SERVER-78852 Test movePrimary and $out running con... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2, v7.0
Sprint: Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30, CAR Team 2023-11-13, CAR Team 2023-11-27
Participants:
Story Points: 3

 Description   

When movePrimary fails during the clone phase due to any reason, the operation will be aborted and cleaned up on the next iteration.

During the movePrimary cleanup, the donor sends a drop for every collection that was expected to be cloned to the recipient shard. One of these collections could be <dbName>.system.views, which can't be dropped if there is any view bucket collection on the node. Therefore, if there is any sharded view collection on the recipient shard while <dbName>.system.views collection is being dropped, the movePrimary cleanup process will fail and the movePrimary will be retried forever.



 Comments   
Comment by Githook User [ 23/Nov/23 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-81371 movePrimary may be retried indefinitely if it fails on clone phase and there are sharded views

(cherry picked from commit a7a3da9e343937399c55ad5a945927befe8f0716)
Branch: v7.0
https://github.com/mongodb/mongo/commit/0ac62f2fa8a1a3698f0b828ee8b8cf3f1aac8d74

Comment by Githook User [ 23/Nov/23 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-81371 movePrimary may be retried indefinitely if it fails on clone phase and there are sharded views

(cherry picked from commit a7a3da9e343937399c55ad5a945927befe8f0716)
Branch: v7.2
https://github.com/mongodb/mongo/commit/1bac640ee91a85d0770b55e20087e2e86a46af19

Comment by Githook User [ 21/Nov/23 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-81371 movePrimary may be retried indefinitely if it fails on clone phase and there are sharded views
Branch: master
https://github.com/mongodb/mongo/commit/a7a3da9e343937399c55ad5a945927befe8f0716

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