infinispan/infinispan — pull request #1617 by anistor (2013-01-28 14:36:52+00:00)
Title: FOR REVIEW ONLY: ISPN-2712 Initial state transfer doesn't appear to all be persisted when...

... using eviction in a replicated cluster

* State transfer uses transactional put commands to write the state and also forces local mode. Because local mode is forced TxInterceptor will not add the state transfer put command to the modification list of the transaction. CacheStoreInterceptor uses the modification list to later update the store when the transaction commits. Since the modification list is empty nothing is actually written to store causing this issue. The issue is not easily observable unless the cache uses eviction, and the cache also has to be transactional. For non-tx caches the modifications are written to store immediatelly and are not enqueued in a modification list until tx commit time so nothing wrong happens.

* Add short test to reproduce the scenario from MODE-1754 (works on 5.1.x and fails on 5.2)

JIRA: https://issues.jboss.org/browse/ISPN-2712