[SERVER-20473] calling setMaintenanceMode(true) while running for election crashes server Created: 17/Sep/15 Updated: 25/Jan/17 Resolved: 18/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.7, 3.1.9 |
| 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 | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Backport Completed: | |
| Sprint: | Repl B (10/30/15) |
| Participants: |
| Comments |
| Comment by Githook User [ 21/Sep/15 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 46e6c6be50a33c54127ea4f6364efdd23f738c02) Conflicts: |
| Comment by Githook User [ 18/Sep/15 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Benety Goh [ 18/Sep/15 ] |
|
For backport, this is the commit to cherry-pick into 3.0: commit 46e6c6be50a33c54127ea4f6364efdd23f738c02 diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp + if (_topCoord->getRole() == TopologyCoordinator::Role::candidate) { + *result = Status(ErrorCodes::NotMaster, "currently running for election"); + return; + }+ |
| Comment by Benety Goh [ 18/Sep/15 ] |
|
commit 2e7162c79274ba4708a307cda38e5d2ea90525f3 commit 756addb3f1f7d92189c398ef844d158b4e0065a9 commit 46e6c6be50a33c54127ea4f6364efdd23f738c02 commit 934fd877b3499ea8b5cf06b1345e4e5cb31488d6 |