[SERVER-67191] PrimaryOnlyService should destroy the old instances before launching async rebuild Created: 10/Jun/22 Updated: 29/Oct/23 Resolved: 15/Jun/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Randolph Tan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Sharding 2022-06-27 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 33 | ||||||||
| Description |
|
The old instances are destroyed at the end of the call of onStepUp when the stack unwinds, but since the new instances are rebuild asynchronously, there is a very small window where the lifetime of the old instance and new instance can overlap. |
| Comments |
| Comment by Githook User [ 14/Jun/22 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: |