Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-1660

Obsolete timeout calculation logic is buggy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4, 4.1.5
    • Fix Version/s: 4.1.5
    • Component/s: Autoscaler
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ravihansa Akila
              Reporter:
              ravihansa Akila
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: