Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0-Ducc
-
None
Description
If a service is stopped and then started IMMEDIATELY, there will be instances still alive that are marked to stop because stopping (and starting) is somewhat time consuming. If this happens, the PingDriver is doing Bad Math and mis-computing the number of actual instances alive, resulting in a negative number. This has the ultimate effect of spawing double (or maybe more) instances.
Fix is to take Math.max(0, instances) in the PingDriver.