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.
- is related to
-
SERVER-89923 Test that only untracked collections are unavailable during movePrimay
- Closed
- related to
-
SERVER-90999 Complete TODO listed in SERVER-89555
- Backlog
-
SERVER-89993 Re-adapt tests expecting movePrimary to affect unsplittable collections
- Closed