Skip to content

Commit 345e607

Browse files
authored
DOCSP-28118 STARTUP2 Nodes Not in Voting Majority (#2592) (#2602)
* DOCSP-28118 STARTUP2 Nodes Not in Voting Majority * fix typo * move in release notes * JD edits * move see also note * move to compatibility changes and include prior version info
1 parent 3942cc1 commit 345e607

File tree

5 files changed

+19
-26
lines changed

5 files changed

+19
-26
lines changed

source/includes/replica-states.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,8 @@
3838

3939
* - 5
4040
- :replstate:`STARTUP2`
41-
- The member has joined the set and is running an initial sync.
42-
Eligible to vote.
43-
44-
.. note::
45-
46-
Starting in MongoDB 5.0, if the member was newly added to the
47-
replica set, it is not eligible to vote and cannot be elected
48-
during the initial sync process.
41+
- The member has joined the set and is running an initial sync. Not
42+
eligible to vote.
4943

5044
* - 6
5145
- :replstate:`UNKNOWN`

source/reference/replica-states.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,20 @@ Other States
5252

5353
.. replstate:: STARTUP2
5454

55+
.. versionchanged:: 5.0
56+
5557
Each data-bearing member of a replica set enters the
5658
:replstate:`STARTUP2` state as soon as :binary:`~bin.mongod` finishes
57-
loading that member's configuration, at which time it becomes an
58-
active member of the replica set and is eligible to vote.
59+
loading that member's configuration.
5960

6061
The member then decides whether or not to undertake an initial sync.
6162
If a member begins an initial sync, the member remains in
6263
:replstate:`STARTUP2` until all data is copied and all indexes are
6364
built. Afterwards, the member transitions to :replstate:`RECOVERING`.
6465

65-
.. note::
66-
67-
Starting in MongoDB 5.0, if the member was newly added to the
68-
replica set, it is not eligible to vote and cannot be elected
69-
during the initial sync process.
66+
Newly-added members in :replstate:`STARTUP2` are not eligible to vote and
67+
cannot be elected during the initial sync process. Prior to MongoDB 5.0,
68+
members in :replstate:`STARTUP2` were eligible to vote.
7069

7170
.. replstate:: RECOVERING
7271

source/reference/write-concern.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ For details, see :ref:`causal-consistency`.
399399
- Delayed secondaries can return write acknowledgment no earlier
400400
than the configured :rsconf:`~members[n].secondaryDelaySecs`.
401401

402-
- Starting in MongoDB 4.4, replica set members in the
402+
- Starting in MongoDB 5.0, replica set members in the
403403
:replstate:`STARTUP2` state do not participate in write majorities.
404404

405405
Write Concern not Supported on ``local`` Database

source/release-notes/4.4.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -884,16 +884,6 @@ or
884884

885885
db.serverStatus( { mirroredReads: 1 } )
886886

887-
Replica Set Write Acknowledgement
888-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
889-
890-
Starting in MongoDB 4.4, replica set members in the
891-
:replstate:`STARTUP2` state do not participate in write majorities.
892-
893-
.. seealso::
894-
895-
:doc:`/core/replica-set-write-concern`
896-
897887
Sharded Clusters
898888
----------------
899889

source/release-notes/5.0-compatibility.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,16 @@ Removed Customizable Values For getLastErrorDefaults
229229

230230
.. include:: /includes/5.0-changes-getLastErrorDefaults-removed.rst
231231

232+
Replica Set Write Acknowledgement
233+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
234+
235+
Starting in MongoDB 5.0, replica set members in the
236+
:replstate:`STARTUP2` state do not participate in write majorities.
237+
238+
.. seealso::
239+
240+
:ref:`replica-set-write-concern`
241+
232242

233243
Read Concern ``snapshot`` on Capped Collections
234244
-----------------------------------------------

0 commit comments

Comments
 (0)