Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13010

Docs: Expiration calculation wrong

    XMLWordPrintable

Details

    Description

      Statement is wrong:

      If (creation + lifespan > currentTime) or (lastUsed + maxIdle > currentTime) then Infinispan detects that the entry is expired."

      Should be:
      If (creation + lifespan < currentTime) or (lastUsed + maxIdle < currentTime)

      example:

      cretated at 1.1.2021 lifespan 1 month will expire
      (1.1.2021 + 1M == 1.2.2021) < 10.1.2021 -> not expired
      (1.1.2021 + 1M == 1.2.2021) < 2.2.2021 -> expired

      Attachments

        Activity

          People

            rhn-support-wfink Wolf Fink
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: