[SERVER-47459] replSetGetStatus.electionParticipantMetrics includes dry run elections Created: 10/Apr/20  Updated: 29/Oct/23  Resolved: 10/Apr/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.4.0-rc2, 4.7.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-46667 Avoid invariant from invalid candidat... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0
Participants:

 Description   

In my fix for SERVER-46667, I accidentally changed its behavior. Before, dry run elections were not counted in the metrics that appear as "electionParticipantMetrics" in the replSetGetStatus reply. Now, dry run elections are counted.



 Comments   
Comment by Githook User [ 15/Apr/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-47459 Election participant metrics skip dry runs

(cherry picked from commit fab4def90426816057138a102490b3b0df0bf6dc)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d0a377ad6012cda8738223026e8197af56e540e0

Comment by A. Jesse Jiryu Davis [ 13/Apr/20 ]

Requesting backport all the way to 4.0. We need to backport SERVER-46667 to prevent BFs, and therefore we must also backport this ticket to fix the mistake in SERVER-46667.

Comment by Githook User [ 10/Apr/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-47459 Election participant metrics skip dry runs
Branch: master
https://github.com/mongodb/mongo/commit/fab4def90426816057138a102490b3b0df0bf6dc

Generated at Thu Feb 08 05:14:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.