scoped task executor shutdown called during PrimaryOnlyService::shutdown should throw ErrorCodes::InterruptedAtShutdown.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Service Arch
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently PrimaryOnlyService::shutdown() interrupts the instances using ErrorCodes::InterruptedAtShutdown . Also shuts down the scoped task executor, and the executor shutdown status gets returned is {ErrorCodes::InterruptedDueToReplStateChange",PrimaryOnlyService executor shut down due to stepDown"}. Though both ErrorCodes::InterruptedAtShutdown & ErrorCodes::InterruptedDueToReplStateChange are retryable error codes, it can cause confusion.

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: