Operational Defect Database

BugZero found this defect 240 days ago.

MongoDB | 2449193

movePrimary's clone phase failure may be retried indefinitely if database contains sharded views

Last update date:

3/12/2024

Affected products:

MongoDB Server

Affected releases:

7.0.2

7.1.0-rc3

7.2.0-rc1

Fixed releases:

7.3.0-rc0

7.2.0-rc2

7.0.5

Description:

Info

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 .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 .system.views collection is being dropped, the movePrimary cleanup process will fail and the movePrimary will be retried forever.

Top User Comments

xgen-internal-githook commented on Thu, 23 Nov 2023 12:03:38 +0000: 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 xgen-internal-githook commented on Thu, 23 Nov 2023 11:11:13 +0000: 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 xgen-internal-githook commented on Tue, 21 Nov 2023 09:26:50 +0000: 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

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...