Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1633

ExpirationAlgorithm ignores entries loaded from a cache loader

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.7.GA
    • Fix Version/s: None
    • Component/s: Eviction
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Configure the cache with ExpirationAlgorithm and a cache loader.
      Add an entry with an expiration time.
      Either wait for the entry to be evicted, or restart the instance.
      Retrieve the entry (which will load it from the cache loader)

      Expected results: the entry will be evicted again (very soon if it was evicted before).
      Actual results: The entry is never evicted.

      Show
      Configure the cache with ExpirationAlgorithm and a cache loader. Add an entry with an expiration time. Either wait for the entry to be evicted, or restart the instance. Retrieve the entry (which will load it from the cache loader) Expected results: the entry will be evicted again (very soon if it was evicted before). Actual results: The entry is never evicted.

      Description

      ExpirationAlgorithm ignores VISIT_NODE_EVENT notifications.
      However, these are the only notifications sent when loading an entry from a cache loader.

      Because of this, any entries loaded from a cache loader are never evicted.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dereed Dennis Reed
                Reporter:
                dereed Dennis Reed
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: