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

The secondary thread of the Balancer should join its TaskExecutor when leaving to correctly clean its state on step down

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc7, 6.0.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0, v6.0
    • Sharding EMEA 2023-07-10
    • 145

      The secondary thread of the balancer makes use of a ScopedTaskExecutor to asynchronously dispatch remote commands and process their outcome.
      When such threads exits, it should make sure that there are no remaining commands/outcomes to be processed by joining such executor to ensure that its internal state remains consistent throughout multiple "step down + step up cycles"

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: