Bug 1196258 - Local Transactional Cache loses data when eviction is enabled and there are multiple readers and one writer
Summary: Local Transactional Cache loses data when eviction is enabled and there are m...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER1
: 6.4.1
Assignee: William Burns
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1202354
TreeView+ depends on / blocked
 
Reported: 2015-02-25 15:30 UTC by Tristan Tarrant
Modified: 2015-04-02 12:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1202354 (view as bug list)
Environment:
Last Closed: 2015-04-02 12:13:44 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-4810 0 Major Resolved Local Transactional Cache loses data when eviction is enabled and there are multiple readers and one writer 2016-05-23 07:28:22 UTC

Description Tristan Tarrant 2015-02-25 15:30:06 UTC
Using Infinispan 6.0.2 and a local, transactional cache backed by a <singleFile> store, with eviction enabled and a small max-entries setting, we have the following scenario:

    the main thread (i.e. the "writer") starts a transaction, adds a batch of strings into the cache and also appends the same strings into a List cache entry and then commits the transaction
    after the above has finished (i.e. after tx.commit) it fires a number of reader threads where each reader thread
        checks that the string entries were added into the cache and
        checks that the entries were correctly appended to the List entry
    the above steps are repeated a number of times

On any given run, based on timing, we're seeing that at some point (after some time) some of the reader threads will not see the latest version of the List entry (i.e. will not see the latest elements that were added into the list) but rather an old, stale List (sort of a "lost update" scenario).

If we either:

    disable eviction or
    set the max-entries to a large enough value (which I suspect has the same effect - not evicting anything) the problem doesn't show up.

Comment 2 William Burns 2015-03-11 14:00:10 UTC
PR: https://github.com/infinispan/jdg/pull/552

Comment 3 JBoss JIRA Server 2015-03-16 13:57:28 UTC
Dan Berindei <dberinde> updated the status of jira ISPN-4810 to Resolved


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