Replace operation set wrong lifespan in remote infinispan database and leads to session eviction (#15619)
Closes #10755
This commit is contained in:
parent
8478b01758
commit
08061afbd4
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public class RemoteCacheInvoker {
|
|||
case ADD_IF_ABSENT:
|
||||
SessionEntityWrapper<V> existing = remoteCache
|
||||
.withFlags(Flag.FORCE_RETURN_VALUE)
|
||||
.putIfAbsent(key, sessionWrapper.forTransport(), -1, TimeUnit.MILLISECONDS, InfinispanUtil.toHotrodTimeMs(remoteCache, maxIdleMs), TimeUnit.MILLISECONDS);
|
||||
.putIfAbsent(key, sessionWrapper.forTransport(), InfinispanUtil.toHotrodTimeMs(remoteCache, task.getLifespanMs()), TimeUnit.MILLISECONDS, InfinispanUtil.toHotrodTimeMs(remoteCache, maxIdleMs), TimeUnit.MILLISECONDS);
|
||||
if (existing != null) {
|
||||
logger.debugf("Existing entity in remote cache for key: %s . Will update it", key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue