[JBoss JIRA] (ISPN-2092) Write skew check not detected in LOCAL mode when doing multiple modifications
by Adrian Nistor (JIRA)
Adrian Nistor created ISPN-2092:
-----------------------------------
Summary: Write skew check not detected in LOCAL mode when doing multiple modifications
Key: ISPN-2092
URL: https://issues.jboss.org/browse/ISPN-2092
Project: Infinispan
Issue Type: Bug
Components: Transactions
Affects Versions: 5.1.5.FINAL
Environment: jdk 1.6.0_32, Fedora 16
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Using a local cache with optimistic locking, repeatable read and write skew check, two threads will concurrently execute a transaction that put() the same key. In this case write skew check is properly detected and only one is able to commit. If the two threads modify two keys no write skew check happens and both will commit. It turns out there is an optimization in OptimisticLockingInterceptor for single modification transactions. The write skew check is properly done on this code path but is not done for the code path that handles transactions with multiple modifications. More specifically, LockAcquisitionVisitor.performWriteSkewCheck is not invoked at all. Please have a look at WriteSkewTest.testCheckWriteSkewWithMultipleModifications() in the pull request that demonstrates the issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (ISPN-2098) DummyTxTest fails randomly
by Adrian Nistor (JIRA)
Adrian Nistor created ISPN-2098:
-----------------------------------
Summary: DummyTxTest fails randomly
Key: ISPN-2098
URL: https://issues.jboss.org/browse/ISPN-2098
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.1.5.FINAL
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Priority: Minor
The test uses multiple threads and does not take into account that some threads might:
1. fail to perform remove() due to an immediate WriteSkewException. I only expected this exception at commit time but it seems for local caches this can also happen immediately.
2. some threads might fail to remove() altogether because the key is already gone and will not get any exception that causes a rollback
See attached log.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (ISPN-2095) Eviction causes lost AtomicMap entries
by Paul Ferraro (JIRA)
Paul Ferraro created ISPN-2095:
----------------------------------
Summary: Eviction causes lost AtomicMap entries
Key: ISPN-2095
URL: https://issues.jboss.org/browse/ISPN-2095
Project: Infinispan
Issue Type: Bug
Components: Eviction
Affects Versions: 5.1.5.FINAL
Reporter: Paul Ferraro
Assignee: Manik Surtani
Priority: Blocker
Here's the scenario:
Given 2 nodes with REPL_SYNC cache with passivating cache store (e.g. default web cache in AS7).
1. Create cache entry containing atomic map with 2 map entries on node1.
2. Passivate that cache entry on node2 via manual evict.
3. Modify 1 of the atomic map entries within the cache entry on node1.
4. Lookup atomic map on node2. It only contains 1 map entry - the map entry modified in step 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (ISPN-2080) Cache Listener is not notified on cache replace
by William Burns (JIRA)
William Burns created ISPN-2080:
-----------------------------------
Summary: Cache Listener is not notified on cache replace
Key: ISPN-2080
URL: https://issues.jboss.org/browse/ISPN-2080
Project: Infinispan
Issue Type: Bug
Components: Listeners
Affects Versions: 5.1.5.FINAL
Reporter: William Burns
Assignee: Manik Surtani
Previously I have been using put with cache listeners to get remote updates. This works fine, however I changed over to using the concurrent map replace method due to my new value being a composite value and I wanted to make sure to work with asynchronous updates across jvm in a loop. The changes work fine however I am no longer getting CacheModification listener events.
I have attached a test case that tests this and changes that allow for the cache listeners to be notified.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (ISPN-2089) Transactional distributed shared cache store not working
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-2089:
--------------------------------------
Summary: Transactional distributed shared cache store not working
Key: ISPN-2089
URL: https://issues.jboss.org/browse/ISPN-2089
Project: Infinispan
Issue Type: Bug
Components: Distributed Cache, Loaders and Stores, Transactions
Affects Versions: 5.1.5.FINAL
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Priority: Critical
Fix For: 5.2.0.ALPHA1, 5.2.0.FINAL
This test fails:
{code}public class DistSyncTxCacheStoreSharedTest extends BaseDistCacheStoreTest {
public DistSyncTxCacheStoreSharedTest() {
sync = true;
tx = true;
testRetVals = true;
shared = true;
INIT_CLUSTER_SIZE = 2;
numOwners = 1;
}
public void testPutFromNonOwner() throws Exception {
Cache<Object, String> cacheX = getFirstNonOwner("key1");
CacheStore storeX = TestingUtil.extractComponent(
cacheX, CacheLoaderManager.class).getCacheStore();
cacheX.put("key1", "v1");
assertEquals("v1", cacheX.get("key1"));
assertNotNull(storeX.load("key1"));
assertEquals("v1", storeX.load("key1").getValue());
}
}{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months