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

Replica set aware services should provide a cancellationSource instatiated/canceled on step-up/step-down

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication

      There are currently several cancellation sources in the codebase that serve the exact same purpose: being instantiated on step-up and canceled on step-down. It looks like a recurring pattern that everyone implements in a custom way when needed.

      Some examples:

      Objective of this ticket is to include a cancellation source as part of the ReplicaSetAwareInterface so that it would replace most of the current usages and push to implement new features (or refactor old ones) on the top of this interface for behaviors modeled around step-up and step-down.

      Possible implementation: the cancellation source may be unique and shared by all replica set aware instances or implemented as part of the replication coordinator, in the latter case it would be nice to have a way to easily access it from replica set aware instances.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: