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

Improve the logic to consume streaming actions on the Balancer secondary thread

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-04-04

      The secondary thread of the balancer is meant to retrieve a stream of defragmentation command descriptors from the defragmentation policy, and to be put on pause when there is no new activity to be consumed.

      The logic to suspend/resume the action of the thread is currently implemented within the policy, and it could be greatly simplified if it were brought back to the balancer (improving separation of concerns and allowing to create a generic synch infrastructure that could be reused to implement SERVER-64171).

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

              Created:
              Updated:
              Resolved: