[SERVER-28275] fix misleading log message in ReplicationCoordinatorImpl::_startElectSelfIfEligibleV1() Created: 10/Mar/17  Updated: 05/Apr/17  Resolved: 13/Mar/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.4.4, 3.5.5

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

ReplicationCoordinatorImpl::_startElectSelfIfEligibleV1() logs one of the 2 following messages just before starting an election:

  • Starting an election for a priority takeover
  • Starting an election, since we've seen no PRIMARY in the past ... ms

A successful step up request will also cause the second message to be logged, which can be misleading.



 Comments   
Comment by Githook User [ 30/Mar/17 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-28275 fixed election log message in ReplicationCoordinatorImpl::_startElectSelfIfEligibleV1()

(cherry picked from commit 90bd4ed6ba5d0f3353d1af42c667cd6a2c1a540e)
Branch: v3.4
https://github.com/mongodb/mongo/commit/080961826dd388301facab99766dbe1eabba113c

Comment by Githook User [ 13/Mar/17 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-28275 fixed election log message in ReplicationCoordinatorImpl::_startElectSelfIfEligibleV1()
Branch: master
https://github.com/mongodb/mongo/commit/90bd4ed6ba5d0f3353d1af42c667cd6a2c1a540e

Generated at Thu Feb 08 04:17:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.