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

OffHeapEntry update maxIdle has code that can never be hit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 14.0.8.Final
    • Off Heap
    • None

      While reviewing https://github.com/infinispan/infinispan/pull/10818 it was noticed that maxIdle should never touch the metadata. In fact the code is never even used as the lines here

      https://github.com/infinispan/infinispan/blob/main/core/src/main/java/org/infinispan/container/offheap/OffHeapEntryFactoryImpl.java#L616-L629

      One of those has to be true at that point, so it can't even use the code after it. We should remove the code to prevent confusion and simplify code.

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: