[SERVER-60921] Simplify and optimise the logic of BalancerCommandsScheduler Created: 22/Oct/21  Updated: 29/Oct/23  Resolved: 11/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: Backlog
Fix Version/s: 5.2.0

Type: Task Priority: Major - P3
Reporter: Paolo Polato Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

This is a follow-up ticket to address feedback collected in previous core reviews. The list includes:

  1. minimise the write operations to the recovery collections that require waitForMajority
  2. reduce the memory footprint of the state held by the scheduler
  3. get rid of the _startStopMutex, as synchronisation between initialisation and shutdown routines are already guaranteed by upper level components


 Comments   
Comment by Githook User [ 11/Nov/21 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-60921 Simplify and optimise the BalancerCommandsScheduler
Branch: master
https://github.com/mongodb/mongo/commit/bf817cb2c73a75eb51c5ff7de327b6d2cdeccbef

Comment by Paolo Polato [ 04/Nov/21 ]

tommaso.tocci I am about to re-open the PR - I would prefer the changeset to go into master before proceeding with the switch to the future library, as I believe that this would ease the task.

Generated at Thu Feb 08 05:51:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.