Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1244133

Summary: NearCache: it is possible to read stale data with a put/remove followed by a get
Product: [JBoss] JBoss Data Grid 6 Reporter: Pedro Zapata <pzapataf>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: high    
Version: unspecifiedCC: chuffman, jdg-bugs
Target Milestone: ER1   
Target Release: 6.5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When using a near cache in <literal>LAZY</literal> mode there was a possibility that a read operation following a write operation on the same key within the same thread would return outdated data. For example, the below calls from the same thread could result in <literal>v1</literal> being returned: <programlisting><![CDATA[put(k, v1) put(k, v2) get(k)]]></programlisting> This issue is resolved as of Red Hat JBoss Data Grid 6.5.1.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:47:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pedro Zapata 2015-07-17 09:12:45 UTC
Writes to the NearCache do not invalidate/update local data on put/remove operations, and so the NearCache (LAZY MODE) is invalidated using an eventlistener in an asynch way.
It is possible for a client to write a value and issue a get on the same key, and the result of the get would not be the latest value but the one which was present before the update operation.
This happens frequently when there is very much traffic on the connection of the listener which receives the events for the NearCache.
It would be better at least to invalidate locally every entry modified from the client itself

Comment 2 JBoss JIRA Server 2015-08-11 12:31:32 UTC
Galder ZamarreƱo <galder.zamarreno> updated the status of jira ISPN-5607 to Coding In Progress

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