-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: Backlog
-
Component/s: None
-
Fully Compatible
-
Sharding EMEA 2022-02-07, Sharding EMEA 2022-02-21, Sharding EMEA 2022-03-07
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
The stop() routine of BalancerCommandsScheduler is currently relying on a "fire&forget" strategy to cancel every outstanding request.
While this minimises the execution time of the method, it exposes the class to potential data races in case remote responses to cancelled requests were still received after destroying the Scheduler.
A more robust alternative consists on synching on the reception of every response during the stop() of the scheduler.