Files
mostlymatter/app
Agniva De Sarker d317dd2dde MM-25154: Fix data race in InvokeClusterLeaderChangedListener (#14610)
The order of booting up a server should be
Job scheduler -> Cluster.

And shutdown should be the opposite. This is needed because the job scheduler
initializes certain data structures that are later called by ClusterLeaderChanged
event handlers. And the event handlers run in a separate goroutine.

Therefore, if the cluster initialization happens before the job scheduler,
then a race happens between accessing the jobs variable and setting it.

To prevent this race, we fix the order of startup, and add comments in both
places to prevent things from regressing again.
2020-05-22 23:52:25 +05:30
..
2020-05-15 17:57:15 +02:00
2020-04-18 00:08:57 -07:00
2020-04-18 00:08:57 -07:00
2020-04-18 00:08:57 -07:00
2020-04-18 00:08:57 -07:00
2020-04-18 00:08:57 -07:00
2020-05-15 17:57:15 +02:00
2020-05-15 17:57:15 +02:00