commit | 7a96434bc014bd1aa37dce60e9d28f26b9262ff5 | [log] [tgz] |
---|---|---|
author | Nick Vatamaniuc <vatamane@apache.org> | Tue Jun 09 17:53:56 2020 -0400 |
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | Wed Jun 10 13:54:31 2020 -0400 |
tree | 8056d93cdf36f3ac86d4490c3a0dd9eebd149fb4 | |
parent | 895c3748aa5e65473574d68cfd821f29312f42f2 [diff] |
In replicator, when rescheduling, pick only pending jobs which are not running Previously, when pending jobs were picked in the `ets:foldl` traversal, both running and non-running jobs were considered and a large number of running jobs could displace pending jobs in the accumulator. In the worst case, no crashed jobs would be restarted during rescheduling.