-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Replication
When a newly elected primary is in catchup or drain mode, it can't actually take writes. This can be observed by running the isMaster command against the primary and observing that it returns ismaster:false in its response, but that still leaves every other place that just shows the replica set state (i.e. replSetGetStatus, many log messages, MMS monitoring, etc) as just reporting PRIMARY. To make it clear the difference between a primary that can and can't yet take writes, nodes should report themselves as PRIMARY_ELECT until they have fully completed catchup and drain modes and are available for writes.