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

Ability to terminate early the workflow of a DDL Coordinator

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sharding EMEA 2022-12-12

      The Sharding DDL Coordinator should support is the ability to gracefully terminate the workflow of a coordinator without running all the subsequent phases.

      The typical use case can be described as:

      • Suppose a workflow consisting of 3 phases, let say A, B and C.
      • The phase A realizes that the execution of the workflow can be interrupted with Status::OK under a specific condition.
      • Steps B and C must be skipped.

      Today there are several solutions to implement this use case, however it would be useful that the infrastructure of the Sharding DDL Coordinator offers a facility to support the case in a standard way.

      Ideally, it could sufficient to set a control flag (e.g, _completeWorkflow = true) to gracefully terminate the current workflow before completing the current phase.

      If a good solution already exists using the current API, describe it on this ticket.

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: