[
https://issues.apache.org/jira/browse/IGNITE-28653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079464#comment-18079464
]
Ignite TC Bot commented on IGNITE-28653:
----------------------------------------
{panel:title=Branch: [pull/13117/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/13117/head] Base: [master] : New Tests
(4)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Disk Page Compressions 3{color} [[tests
2|https://ci2.ignite.apache.org/viewLog.html?buildId=9056574]]
* {color:#013220}IgnitePdsCompressionTestSuite3:
IgnitePdsWithTtlTest.testNearCacheExpiredEntriesIteration - PASSED{color}
* {color:#013220}IgnitePdsCompressionTestSuite3:
IgnitePdsWithTtlTest.testReplaceExpiredOnheapEntriesUnderTx - PASSED{color}
{color:#00008b}PDS 1{color} [[tests
2|https://ci2.ignite.apache.org/viewLog.html?buildId=9056514]]
* {color:#013220}IgnitePdsTestSuite:
IgnitePdsWithTtlTest.testNearCacheExpiredEntriesIteration - PASSED{color}
* {color:#013220}IgnitePdsTestSuite:
IgnitePdsWithTtlTest.testReplaceExpiredOnheapEntriesUnderTx - PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9056583&buildTypeId=IgniteTests24Java8_RunAll]
> Failure on iterating over persistent near cache with expired entries
> --------------------------------------------------------------------
>
> Key: IGNITE-28653
> URL: https://issues.apache.org/jira/browse/IGNITE-28653
> Project: Ignite
> Issue Type: Bug
> Reporter: Aleksey Plekhanov
> Assignee: Aleksey Plekhanov
> Priority: Major
> Labels: ise
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Reproducer:
> {code:java}
> IgniteEx srv = startGrids(2);
> srv.cluster().state(ACTIVE);
> IgniteCache<Object, Object> cache = srv.getOrCreateCache(new
> CacheConfiguration<>(DEFAULT_CACHE_NAME)
> .setNearConfiguration(new NearCacheConfiguration<>())
> .setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(new
> Duration(TimeUnit.MILLISECONDS, 1)))
> .setEagerTtl(false)
> );
> for (int i = 0; i < 100; i++)
> cache.put(i, "val");
> doSleep(10);
> cache.clear();
> {code}
> Fails with:
> {noformat}
> Caused by: java.lang.AssertionError
> at
> org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager$GridCacheDataStore.remove(GridCacheOffheapManager.java:2519)
> at
> org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.remove(IgniteCacheOffheapManagerImpl.java:427)
> at
> org.apache.ignite.internal.processors.cache.GridCacheMapEntry.removeValue(GridCacheMapEntry.java:3539)
> at
> org.apache.ignite.internal.processors.cache.GridCacheMapEntry.checkExpired(GridCacheMapEntry.java:2398)
> at
> org.apache.ignite.internal.processors.cache.GridCacheMapEntry.visitable(GridCacheMapEntry.java:3805)
> at
> org.apache.ignite.internal.processors.cache.GridCacheConcurrentMapImpl$1.apply(GridCacheConcurrentMapImpl.java:328)
> at
> org.apache.ignite.internal.processors.cache.GridCacheConcurrentMapImpl$1.apply(GridCacheConcurrentMapImpl.java:326)
> at
> org.apache.ignite.internal.util.lang.gridfunc.TransformFilteringIterator.hasNextX(TransformFilteringIterator.java:90)
> at
> org.apache.ignite.internal.util.lang.GridIteratorAdapter.hasNext(GridIteratorAdapter.java:45)
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.GridCachePartitionedConcurrentMap$PartitionedIterator.hasNext(GridCachePartitionedConcurrentMap.java:186)
> at
> org.apache.ignite.internal.processors.cache.GridCacheClearAllRunnable.run(GridCacheClearAllRunnable.java:79)
> at
> org.apache.ignite.internal.processors.cache.distributed.near.GridNearCacheClearAllRunnable.run(GridNearCacheClearAllRunnable.java:52)
> at
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.clearLocally(GridCacheAdapter.java:1084)
> at
> org.apache.ignite.internal.processors.cache.GridCacheProxyImpl.clearLocally(GridCacheProxyImpl.java:992)
> at
> org.apache.ignite.internal.processors.cache.GridCacheAdapter$GlobalClearAllJob.localExecute(GridCacheAdapter.java:5195)
> {noformat}
> Can also be reproduced without `setEagerTtl(false)` with the same error, but
> there is a race and reproducer is more complex.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)