Operational Defect Database

BugZero found this defect 31 days ago.

MongoDB | 2646341

Ensure movePrimary does not prevent writes in unsplittable collections

Last update date:

4/18/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

Currently we have in a migration observer an assertion to prevent writes if there is a move primary in progress. This does not happen for sharded collections because they are not being moved, but considering the way to move unsplittable unsharded collections is through moveCollection, and SERVER-83925 made the movePrimary coordinator should stop cloning unsplittable collections, we should also prevent unsplittable collection writes to throw if there is a concurrent movePrimary We should also increase testing as part of this ticket, by either checking the current FSM implementation of movePrimary and try to make sure that writes for unsplittable collection will not fail while there is a concurrent movePrimary, or add specific tests for this.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Open

Learn More

Search:

...