[SERVER-39473] Should not report isMaster while stepping down conditionally Created: 08/Feb/19  Updated: 29/Oct/23  Resolved: 21/Feb/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-37065 Report ismaster:false in isMaster com... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2019-02-25
Participants:
Linked BF Score: 19

 Description   

We currently report isMaster: false while in the process of stepping down unconditionally (but not while stepping down conditionally). We should report isMaster: false whenever we are stepping down. We cannot accept writes while the stepdown is in process. If the stepdown ultimately fails, we can just report isMaster: true again.



 Comments   
Comment by Githook User [ 21/Feb/19 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-39473 Should not report isMaster while stepping down conditionally
Branch: master
https://github.com/mongodb/mongo/commit/9cf0e378392c2c45131602e45b9ee9c2dc6c28bd

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