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

OffHeapEntry update maxIdle has code that can never be hit

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • 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
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: