[SERVER-70964] Do not wait for range deletion thread on stepdown Created: 30/Oct/22 Updated: 29/Oct/23 Resolved: 03/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 6.2.0-rc0 |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Tommaso Tocci |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Steps To Reproduce: | Apply the provided patch on top of r6.2.0-alpha-1295-gab34541c92e and run:
|
||||||||||||||||||||
| Sprint: | Sharding EMEA 2022-10-31, Sharding EMEA 2022-11-14 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 55 | ||||||||||||||||||||
| Description |
|
On stepdown the RangeDeleterService destruct the ReadyRangeDeletionsProcessor that in turns interrupt and join its internal thread. In order not to slowdown the stepdown process we should instead
The proposed approach will still guarantee that all the previous range deletions will be drained strictly before the node can transition to PRIMARY again. |
| Comments |
| Comment by Githook User [ 03/Nov/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |