[SERVER-69552] Handle range deleter service `onStepDown` race conditions Created: 09/Sep/22  Updated: 27/Oct/23  Resolved: 14/Sep/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Sharding EMEA 2022-09-19
Participants:

 Description   

Handle the following improbable but risky race conditions in the range deleter service:

  • The onStepDown hook may be invoked even if no step-up had previously happened in case of rollback (even when rollbacking happening on a SECONDARY node):
  • As the recovery of range deleter tasks is only spawned on step-up but may complete later, it's not assumable that the node is still primary when the recovery finishes:


 Comments   
Comment by Pierlauro Sciarelli [ 14/Sep/22 ]

Recommitted under SERVER-68348.

Comment by Githook User [ 10/Sep/22 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: Revert "SERVER-69552 Handle range deleter service `onStepDown` race conditions"

This reverts commit 289aeb5651069bf176a3310c2d0157ce80809268.
Branch: master
https://github.com/mongodb/mongo/commit/27c853347660310304d6fe2a3870a9a083aba953

Comment by Githook User [ 09/Sep/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-69552 Handle range deleter service `onStepDown` race conditions
Branch: master
https://github.com/mongodb/mongo/commit/289aeb5651069bf176a3310c2d0157ce80809268

Generated at Thu Feb 08 06:13:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.