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

Jcache: loaded entries should use ExpiryPolicy.getExpiryForCreation()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.Final
    • 10.0.0.CR2
    • Core, JCache
    • None

      MVCCEntry.isLoaded() is not used in the core, but JCache uses it do decide whether to call ExpiryPolicy.getExpiryForCreation() or ExpiryPolicy.getExpiryForAccess().

      ISPN-8086 accidentally removed the ReadCommittedEntry implementation along with CacheEntry.isLoaded(), but the CacheExpiryTest test failure got ignored because Jenkins ignores the TCK test suite results (ISPN-10379).

      [OK:    14, KO:     1, SKIP:     0] Test failed: CacheExpiryTest.invokeAllReadThroughEnabledGetOnNonExistentEntry
      java.lang.AssertionError: 
      Expected: is <0>
           but: was <5>
      	at org.jsr107.tck.expiry.CacheExpiryTest.invokeAllReadThroughEnabledGetOnNonExistentEntry(CacheExpiryTest.java:1202)
      [OK:    15, KO:     2, SKIP:     0] Test failed: CacheExpiryTest.invokeGetValueWithReadThroughForNonExistentEntryShouldCallGetExpiryForCreatedEntry
      java.lang.AssertionError: 
      Expected: is <0>
           but: was <1>
      	at org.jsr107.tck.expiry.CacheExpiryTest.invokeGetValueWithReadThroughForNonExistentEntryShouldCallGetExpiryForCreatedEntry(CacheExpiryTest.java:1110)
      

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: