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

InternalEntryFactory mixing up maxIdle, lastUsed and and created for TransientMortalCacheValue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.ALPHA6
    • 4.0.0.ALPHA5
    • None
    • None

      For TransientMortalCacheValue, InternalEntryFactory.createValue(Object, long, long, long , long) was doing the following:

      return new TransientMortalCacheValue(v, maxIdle, lifespan, lastUsed, created);

      But the TransientMortalCacheValue constructor was like this:

      TransientMortalCacheValue(Object value, long created, long lifespan, long maxIdle, long lastUsed)

      { this(value, created, lifespan, maxIdle); this.lastUsed = lastUsed; }

      So that factory method was mixing up maxIdle, lastUsed and and created values.
      JBMAR externalizer implementations uses this factory method and hence when testing it, the issue arised.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: