Akila created STRATOS-1660:
------------------------------

             Summary: Obsolete timeout calculation logic is buggy
                 Key: STRATOS-1660
                 URL: https://issues.apache.org/jira/browse/STRATOS-1660
             Project: Stratos
          Issue Type: Bug
          Components: Autoscaler
    Affects Versions: 4.1.5
            Reporter: Akila


https://github.com/apache/stratos/blob/4.1.5/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java#L750

long obsoleteTime = System.currentTimeMillis() - obsoleteMember.getInitTime(); 

The above does not take into account instances that were moved to the obsolete 
list while in active status. In that case, it should be

long obsoleteTime = System.currentTimeMillis() - 
obsoleteMember.getObsoleteInitTime(); 

It should handle both inactive members (did not become active after being 
created), and faulty members.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to