[JBoss JIRA] (ISPN-5088) Deleted entries from (Fine)AtomicMap reappear in subsequent transaction
by Sanne Grinovero (JIRA)
Sanne Grinovero created ISPN-5088:
-------------------------------------
Summary: Deleted entries from (Fine)AtomicMap reappear in subsequent transaction
Key: ISPN-5088
URL: https://issues.jboss.org/browse/ISPN-5088
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 7.0.2.Final
Reporter: Sanne Grinovero
Priority: Critical
After a {{FineGrainedAtomicMap}} containing some data is deleted in a transaction, but then in the same transaction it's re-created, the next transaction will be able to read the original data which it contained.
Some pseudocode:
{code}tx1.start();
am = AtomicMapLookup.getFineGrainedAtomicMap( cache, cacheKey, true );
am.put(k1, v1);
tx1.commit()
tx2.start();
am = AtomicMapLookup.getFineGrainedAtomicMap( cache, cacheKey, true );
am.put(k3, v3);
AtomicMapLookup.removeAtomicMap( cache, cacheKey );
am = AtomicMapLookup.getFineGrainedAtomicMap( cache, cacheKey, true );
am.put(k2,v2);
tx2.commit()
tx3.start();
am = AtomicMapLookup.getFineGrainedAtomicMap( cache, cacheKey, true );
am.contains(k1) == false; // FAILS!
tx3.commit();{code}
Also applies apparently to a normal AtomicMap if using DIST_SYNC.
I'm attaching a full test, which results in:
{noformat}
Failed tests:
RepeatableReadFineGrainedAtomicMapAPITest>BaseAtomicHashMapAPITest.testInsertDeleteInsertCycle:596 null
FineGrainedAtomicMapAPITest>BaseAtomicHashMapAPITest.testInsertDeleteInsertCycle:596 null
DistFineGrainedAtomicMapAPITest>BaseAtomicHashMapAPITest.testInsertDeleteInsertCycle:596 null
DistRepeatableReadFineGrainedAtomicMapAPITest>BaseAtomicHashMapAPITest.testInsertDeleteInsertCycle:596 null
DistRepeatableReadAtomicMapAPITest>BaseAtomicHashMapAPITest.testInsertDeleteInsertCycle:596 null
DistAtomicMapAPITest>BaseAtomicHashMapAPITest.testInsertDeleteInsertCycle:596 null
Tests run: 5636, Failures: 6, Errors: 0, Skipped: 0
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (ISPN-3690) Lower allocation cost of instances of org.infinispan.commands.read.GetKeyValueCommand
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-3690?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero reassigned ISPN-3690:
-------------------------------------
Assignee: Tristan Tarrant (was: Mircea Markus)
> Lower allocation cost of instances of org.infinispan.commands.read.GetKeyValueCommand
> -------------------------------------------------------------------------------------
>
> Key: ISPN-3690
> URL: https://issues.jboss.org/browse/ISPN-3690
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core
> Reporter: Sanne Grinovero
> Assignee: Tristan Tarrant
> Priority: Minor
>
> Classes of type {code}org.infinispan.commands.read.GetKeyValueCommand{code} have an high cost in terms of memory allocation.
> Would be great if we could reduce the runtime cost: in an app server test of just 25 minutes - which is stressing way more systems than just Infinispan - just the occasional get operations 43GB of memory accumulated over time.
> This is a high cost on the TLABs, skewing various other values, among others making the default GC options unsuitable.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (ISPN-3690) Lower allocation cost of instances of org.infinispan.commands.read.GetKeyValueCommand
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-3690?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero reassigned ISPN-3690:
-------------------------------------
Assignee: Sanne Grinovero (was: Tristan Tarrant)
> Lower allocation cost of instances of org.infinispan.commands.read.GetKeyValueCommand
> -------------------------------------------------------------------------------------
>
> Key: ISPN-3690
> URL: https://issues.jboss.org/browse/ISPN-3690
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core
> Reporter: Sanne Grinovero
> Assignee: Sanne Grinovero
> Priority: Minor
>
> Classes of type {code}org.infinispan.commands.read.GetKeyValueCommand{code} have an high cost in terms of memory allocation.
> Would be great if we could reduce the runtime cost: in an app server test of just 25 minutes - which is stressing way more systems than just Infinispan - just the occasional get operations 43GB of memory accumulated over time.
> This is a high cost on the TLABs, skewing various other values, among others making the default GC options unsuitable.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (ISPN-5087) CacheContainerStatsMBeanTest.testClusterStats() is failing
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5087?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-5087:
----------------------------------
Status: Open (was: New)
> CacheContainerStatsMBeanTest.testClusterStats() is failing
> ----------------------------------------------------------
>
> Key: ISPN-5087
> URL: https://issues.jboss.org/browse/ISPN-5087
> Project: Infinispan
> Issue Type: Feature Request
> Components: Test Suite - Core
> Affects Versions: 7.1.0.Alpha1
> Reporter: Pedro Ruivo
> Assignee: Vladimir Blagojevic
> Priority: Blocker
> Fix For: 7.1.0.Beta1, 7.1.0.Final
>
>
> The test is always failing:
> {code}
> testClusterStats(org.infinispan.jmx.CacheContainerStatsMBeanTest) Time elapsed: 0.017 sec <<< FAILURE!
> java.lang.AssertionError: expecting 0 for AverageWriteTime, to be greater than0
> at org.infinispan.jmx.CacheContainerStatsMBeanTest.assertAttributeValueGreaterThan(CacheContainerStatsMBeanTest.java:100)
> at org.infinispan.jmx.CacheContainerStatsMBeanTest.testClusterStats(CacheContainerStatsMBeanTest.java:86)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (ISPN-5087) CacheContainerStatsMBeanTest.testClusterStats() is failing
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5087?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-5087:
----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/3161
> CacheContainerStatsMBeanTest.testClusterStats() is failing
> ----------------------------------------------------------
>
> Key: ISPN-5087
> URL: https://issues.jboss.org/browse/ISPN-5087
> Project: Infinispan
> Issue Type: Feature Request
> Components: Test Suite - Core
> Affects Versions: 7.1.0.Alpha1
> Reporter: Pedro Ruivo
> Assignee: Vladimir Blagojevic
> Priority: Blocker
> Fix For: 7.1.0.Beta1, 7.1.0.Final
>
>
> The test is always failing:
> {code}
> testClusterStats(org.infinispan.jmx.CacheContainerStatsMBeanTest) Time elapsed: 0.017 sec <<< FAILURE!
> java.lang.AssertionError: expecting 0 for AverageWriteTime, to be greater than0
> at org.infinispan.jmx.CacheContainerStatsMBeanTest.assertAttributeValueGreaterThan(CacheContainerStatsMBeanTest.java:100)
> at org.infinispan.jmx.CacheContainerStatsMBeanTest.testClusterStats(CacheContainerStatsMBeanTest.java:86)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (ISPN-5087) CacheContainerStatsMBeanTest.testClusterStats() is failing
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5087?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-5087:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 7.1.0.Beta1
7.1.0.Final
Resolution: Done
> CacheContainerStatsMBeanTest.testClusterStats() is failing
> ----------------------------------------------------------
>
> Key: ISPN-5087
> URL: https://issues.jboss.org/browse/ISPN-5087
> Project: Infinispan
> Issue Type: Feature Request
> Components: Test Suite - Core
> Affects Versions: 7.1.0.Alpha1
> Reporter: Pedro Ruivo
> Assignee: Vladimir Blagojevic
> Priority: Blocker
> Fix For: 7.1.0.Beta1, 7.1.0.Final
>
>
> The test is always failing:
> {code}
> testClusterStats(org.infinispan.jmx.CacheContainerStatsMBeanTest) Time elapsed: 0.017 sec <<< FAILURE!
> java.lang.AssertionError: expecting 0 for AverageWriteTime, to be greater than0
> at org.infinispan.jmx.CacheContainerStatsMBeanTest.assertAttributeValueGreaterThan(CacheContainerStatsMBeanTest.java:100)
> at org.infinispan.jmx.CacheContainerStatsMBeanTest.testClusterStats(CacheContainerStatsMBeanTest.java:86)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months