Bug 1252986 - putIfAbsentAsync not enforcing withFlags(Flag.FORCE_RETURN_VALUE)
Summary: putIfAbsentAsync not enforcing withFlags(Flag.FORCE_RETURN_VALUE)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: CR1
: 6.5.1
Assignee: Galder Zamarreño
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-12 16:09 UTC by Shay Matasaro
Modified: 2025-02-10 03:48 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:48:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-5677 0 Major Resolved HR putIfAbsentAsync not enforcing withFlags(Flag.FORCE_RETURN_VALUE) 2018-11-20 03:03:50 UTC

Description Shay Matasaro 2015-08-12 16:09:56 UTC
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

Comment 2 JBoss JIRA Server 2015-08-13 07:40:22 UTC
Galder Zamarreño <galder.zamarreno> updated the status of jira ISPN-5677 to Coding In Progress

Comment 4 JBoss JIRA Server 2015-08-21 13:17:33 UTC
Galder Zamarreño <galder.zamarreno> updated the status of jira ISPN-5677 to Reopened

Comment 5 JBoss JIRA Server 2015-08-21 15:02:52 UTC
Gustavo Fernandes <gustavo> updated the status of jira ISPN-5677 to Coding In Progress

Comment 6 JBoss JIRA Server 2015-08-21 15:03:09 UTC
Gustavo Fernandes <gustavo> updated the status of jira ISPN-5677 to Resolved

Comment 10 Red Hat Bugzilla 2025-02-10 03:48:00 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.