[
https://issues.apache.org/jira/browse/UIMA-4252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jim Challenger updated UIMA-4252:
---------------------------------
Summary: DUCC: SM Calculates negative number of service instances to add!
(was: DUCC: SM Calculeates negative number of service instances to add!)
> DUCC: SM Calculates negative number of service instances to add!
> ----------------------------------------------------------------
>
> Key: UIMA-4252
> URL: https://issues.apache.org/jira/browse/UIMA-4252
> Project: UIMA
> Issue Type: Bug
> Components: DUCC
> Affects Versions: 1.1.0-Ducc
> Reporter: Jim Challenger
> Assignee: Jim Challenger
> Fix For: 2.0.0-Ducc
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)