Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69552

Handle range deleter service `onStepDown` race conditions

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • ALL
    • Sharding EMEA 2022-09-19

      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:

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: