Closed parente closed 8 years ago
@captainsafia @rgbkrk Opened this PR so that I could capture the plot of the behavior somewhere. I'll merge it myself since it's clearly the right fix for the current chaos that can ensue when inopportune heartbeats occur.
:+1:
Let the next heartbeat task detect that containers are missing and handle their replacement. Replacing immediately leads to chaos when the heartbeat goes off in the middle of the asynchronous drains. For example:
Notice the number of containers doubles after a drain on the left side of the graph (before this fix). There's no overshoot after the drain on the right side of the graph (after this fix).