[SERVER-58023] The PrimaryOnlyService should not invariant that _activeInstances is empty when in kPaused Created: 23/Jun/21  Updated: 29/Oct/23  Resolved: 24/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc5, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Janna Golden Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Service Arch 2021-06-28
Participants:
Linked BF Score: 135

 Description   

The PrimaryOnlyService enters kPaused on step down, and the only times we remove an instance (or all instances) from _activeInstances is when we remove a state doc from disk, drop the state collection (neither of which we do on stepdown bc we rebuild using the on disk state), or when we swap out _activeInstances during shutdown and stepUp.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 24/Jun/21 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-58023 PrimaryOnlyService should not invariant that _activeInstances is empty when in kPaused

(cherry picked from commit 6e08ac57662b82c3249d2bd2f6a02841f6bf75c5)
Branch: v5.0
https://github.com/mongodb/mongo/commit/70397073ac3fb14afc19f69bebf0f67cab041a16

Comment by Githook User [ 24/Jun/21 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-58023 PrimaryOnlyService should not invariant that _activeInstances is empty when in kPaused
Branch: master
https://github.com/mongodb/mongo/commit/6e08ac57662b82c3249d2bd2f6a02841f6bf75c5

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