[infinispan-issues] [JBoss JIRA] (ISPN-5670) Hot Rod server sets -1 for lifespan or maxIdle as default

William Burns (JIRA) issues at jboss.org
Mon Aug 17 10:16:26 EDT 2015


     [ https://issues.jboss.org/browse/ISPN-5670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Burns updated ISPN-5670:
--------------------------------
    Git Pull Request: https://github.com/infinispan/infinispan/pull/3640, https://github.com/infinispan/infinispan/pull/3649  (was: https://github.com/infinispan/infinispan/pull/3640)


> Hot Rod server sets -1 for lifespan or maxIdle as default
> ---------------------------------------------------------
>
>                 Key: ISPN-5670
>                 URL: https://issues.jboss.org/browse/ISPN-5670
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Remote Protocols
>            Reporter: William Burns
>            Assignee: William Burns
>             Fix For: 8.0.0.CR1, 7.2.5.Final
>
>
> The hotrod server currently keeps the default lifespan and maxIdle in the CacheDecodeContext.  This works fine however a metadata is generated ignoring that if -1 is passed.  Instead the put(K, V, Metadata) merges the default metadata into the one generated, which won't have a lifespan or maxIdle set since it was -1.  In this case the merge method will take the default value instead.  We should explicitly set the metadata to -1 before calling put(K, V, Metadata)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list