[SERVER-68348] Asynchronously register tasks on the range deleter service on step-up Created: 27/Jul/22 Updated: 29/Oct/23 Resolved: 12/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Pierlauro Sciarelli | Assignee: | Pierlauro Sciarelli |
| 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 EMEA 2022-08-22, Sharding EMEA 2022-09-05, Sharding EMEA 2022-09-19 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 170 | ||||||||||||||||||||
| Description |
|
Since the range deleter service lifetime is associated with step-up/down ( A possible way to do so will be the following:
This way, the step-up will not be blocked by the recovery of range deletions and - at the same time - it will not be possible to miss documents because no thread will be allowed to write on the config.rangeDeletions collection as long as the lock will be in scope. The recovery performed on the legacy range deleter can partially serve as an example for the work to be done under this ticket. Also, remember to feature flag the legacy recovery as part of this ticket. |
| Comments |
| Comment by Githook User [ 12/Sep/22 ] |
|
Author: {'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}Message: |
| Comment by Githook User [ 10/Sep/22 ] |
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: Revert " This reverts commit 30583a2c505c03e4d54bbb14cab170b225c071f2. |
| Comment by Githook User [ 07/Sep/22 ] |
|
Author: {'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}Message: Co-authored-by: Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> |