[JBoss JIRA] (ISPN-9899) Move from JUnit 4 to 5 and add IT Tests
by Katia Aresti (Jira)
[ https://issues.jboss.org/browse/ISPN-9899?page=com.atlassian.jira.plugin.... ]
Katia Aresti updated ISPN-9899:
-------------------------------
Description: Add IT tests for the remote server and migrate from Junit 4 to 5 (was: There is an incorrect cast in the RemoteInfinispanCacheMeterBinderProvider class.
We do cache instanceof RemoteCache instead of cache.getNativeCache().
This causes an error when using Actuator. Add IT tests to avoid this problem to come back)
> Move from JUnit 4 to 5 and add IT Tests
> ---------------------------------------
>
> Key: ISPN-9899
> URL: https://issues.jboss.org/browse/ISPN-9899
> Project: Infinispan
> Issue Type: Bug
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Critical
>
> Add IT tests for the remote server and migrate from Junit 4 to 5
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 3 months
[JBoss JIRA] (ISPN-9901) Simple cache with statistics enabled results in NullPointerException in EvictionManagerImpl
by Karl von Randow (Jira)
Karl von Randow created ISPN-9901:
-------------------------------------
Summary: Simple cache with statistics enabled results in NullPointerException in EvictionManagerImpl
Key: ISPN-9901
URL: https://issues.jboss.org/browse/ISPN-9901
Project: Infinispan
Issue Type: Bug
Components: Eviction
Affects Versions: 9.4.4.Final
Reporter: Karl von Randow
A {{simple-cache}} with {{statistics}} enabled and an eviction policy results in a {{NullPointerException}} when eviction occurs.
{code}
java.lang.NullPointerException
at org.infinispan.eviction.impl.EvictionManagerImpl.updateEvictionStatistics(EvictionManagerImpl.java:45)
at org.infinispan.eviction.impl.EvictionManagerImpl.onEntryEviction(EvictionManagerImpl.java:39)
at org.infinispan.container.impl.AbstractInternalDataContainer$DefaultEvictionListener.onEntryEviction(AbstractInternalDataContainer.java:510)
at org.infinispan.container.impl.AbstractInternalDataContainer.lambda$applyListener$5(AbstractInternalDataContainer.java:473)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:286)
at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:20)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:292)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.evictEntry(BoundedLocalCache.java:821)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.evictFromMain(BoundedLocalCache.java:638)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.evictEntries(BoundedLocalCache.java:504)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.maintenance(BoundedLocalCache.java:1137)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.performCleanUp(BoundedLocalCache.java:1108)
at com.github.benmanes.caffeine.cache.BoundedLocalCache$PerformCleanupTask.run(BoundedLocalCache.java:2979)
at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:20)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.scheduleDrainBuffers(BoundedLocalCache.java:1080)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.scheduleAfterWrite(BoundedLocalCache.java:1047)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.afterWrite(BoundedLocalCache.java:1017)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.remap(BoundedLocalCache.java:2272)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.compute(BoundedLocalCache.java:2146)
at com.github.benmanes.caffeine.cache.LocalCache.compute(LocalCache.java:100)
at org.infinispan.container.impl.AbstractInternalDataContainer.compute(AbstractInternalDataContainer.java:223)
at org.infinispan.container.impl.AbstractInternalDataContainer.compute(AbstractInternalDataContainer.java:242)
at org.infinispan.cache.impl.SimpleCacheImpl.putForExternalReadInternal(SimpleCacheImpl.java:207)
at org.infinispan.cache.impl.StatsCollectingCache.putForExternalReadInternal(StatsCollectingCache.java:200)
at org.infinispan.cache.impl.SimpleCacheImpl.putForExternalRead(SimpleCacheImpl.java:180)
at org.infinispan.cache.impl.AbstractDelegatingCache.putForExternalRead(AbstractDelegatingCache.java:49)
at org.infinispan.cache.impl.EncoderCache.putForExternalRead(EncoderCache.java:175)
at org.infinispan.hibernate.cache.commons.access.InvalidationCacheAccessDelegate.putFromLoad(InvalidationCacheAccessDelegate.java:114)
at org.infinispan.hibernate.cache.v51.entity.ReadOnlyAccess.putFromLoad(ReadOnlyAccess.java:54)
at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:219)
at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:125)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1139)
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 3 months