[infinispan-issues] [JBoss JIRA] (ISPN-5677) HR putIfAbsentAsync not enforcing withFlags(Flag.FORCE_RETURN_VALUE)

RH Bugzilla Integration (JIRA) issues at jboss.org
Wed Sep 2 19:36:05 EDT 2015


    [ https://issues.jboss.org/browse/ISPN-5677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104789#comment-13104789 ] 

RH Bugzilla Integration commented on ISPN-5677:
-----------------------------------------------

Dave Stahl <dstahl at redhat.com> changed the Status of [bug 1252986|https://bugzilla.redhat.com/show_bug.cgi?id=1252986] from MODIFIED to ON_QA

> HR  putIfAbsentAsync not enforcing withFlags(Flag.FORCE_RETURN_VALUE) 
> ----------------------------------------------------------------------
>
>                 Key: ISPN-5677
>                 URL: https://issues.jboss.org/browse/ISPN-5677
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 6.0.2.Final
>            Reporter: Shay Matasaro
>            Assignee: Gustavo Fernandes
>             Fix For: 8.0.0.CR1, 8.0.0.Final, 7.2.5.Final
>
>
> given the following HR client code
> NotifyingFuture<String> f1 = cache.withFlags(Flag.FORCE_RETURN_VALUE).putIfAbsentAsync(key, "1");
> 		System.out.println(f1.get(10,TimeUnit.MINUTES));
> 		NotifyingFuture<String> f2 = cache.withFlags(Flag.FORCE_RETURN_VALUE).putIfAbsentAsync(key, "2");
> 		System.out.println(f2.get(10,TimeUnit.MINUTES));
> both prints print null, where the second one should print "1"
> only when props.put("infinispan.client.hotrod.force_return_values","true")   is set specifically when building the CM then the calls work



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


More information about the infinispan-issues mailing list