[JBoss JIRA] (ISPN-8548) Clear post notifications can cause memory issues as it holds all entries locally
by William Burns (JIRA)
William Burns created ISPN-8548:
-----------------------------------
Summary: Clear post notifications can cause memory issues as it holds all entries locally
Key: ISPN-8548
URL: https://issues.jboss.org/browse/ISPN-8548
Project: Infinispan
Issue Type: Bug
Affects Versions: 9.1.3.Final, 9.2.0.Beta1
Reporter: William Burns
Assignee: William Burns
Currently clear iterates over the container and stores all entries before finally invoking clear. This can cause memory issues especially for off heap as we don't want to have all of these entries in the JVM heap at the same time.
Something like
{code}
Iterator<InternalCacheEntry<Object, Object>> iterator =
dataContainer.iterator();
while (iterator.hasNext()) {
InternalCacheEntry entry = iterator.next();
iterator.remove();
notifier.notifyCacheEntryRemoved(entry.getKey(), entry.getValue(),
entry.getMetadata(), false, context, command);
}
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 1 month
[JBoss JIRA] (ISPN-8547) LocalModeTxTest failures
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-8547:
---------------------------------------
Summary: LocalModeTxTest failures
Key: ISPN-8547
URL: https://issues.jboss.org/browse/ISPN-8547
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.2.0.Beta1
Reporter: Gustavo Fernandes
It looks like a cascade failure, the following tests end up with error:
[ERROR] testClassStarted(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.11 s <<< FAILURE!
[ERROR] testKeySet2[storage=OFF_HEAP](org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.04 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.041 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.002 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0 s <<< FAILURE!
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] testClassFinished(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0 s <<< FAILURE!
[ERROR] testClassFinished(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0 s <<< FAILURE!
[ERROR] testClassFinished(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] testClassFinished(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
[ERROR] testClassFinished(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.002 s <<< FAILURE!
[ERROR] testClassFinished(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.002 s <<< FAILURE!
This is likely the root cause:
{noformat}
[ERROR] testClassStarted(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.11 s <<< FAILURE!
java.lang.IllegalStateException: Two tests with the same name running in parallel: org.infinispan.tx.LocalModeTxTest[storage=OFF_HEAP]
{noformat}
{noformat}
[ERROR] clearContent(org.infinispan.tx.LocalModeTxTest) Time elapsed: 0.001 s <<< FAILURE!
org.infinispan.IllegalLifecycleStateException: Cache container has been stopped and cannot be reused. Recreate the cache container.
at org.infinispan.manager.DefaultCacheManager.assertIsNotTerminated(DefaultCacheManager.java:944)
at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:458)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:454)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:487)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:478)
at org.infinispan.test.TestingUtil.lambda$getRunningCaches$4(TestingUtil.java:836)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 1 month