Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Fully Compatible
-
0
Description
In signalDrainComplete(), _canAcceptNonLocalWrites should be the last thing to do after writing down the "new primary" no-op and enabling balancer, which matches users' expectation.
Since balancer initialization needs to write to admin database, we need to introduce an RAII type AllowWritesBlock and a flag as a decoration of operation context to allow non-local writes even if the node is not primary.
Attachments
Issue Links
- is related to
-
SERVER-26970 isMaster can return isMaster: true while in drain mode
-
- Closed
-