apache / apache/ignite

Ignite Eviction is not working with Cache Mode as Atomic

Open
#10,855 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.1k
Forks
1.9k
Avg merge
3d 2h
Merged PRs (30d)
46

Description

We are using ignite cache and cluster with various configurations. The entity cache with Cache configuration as Atomic is not evicting data but behaving as unlimited cache. The same is working for Transactional mode. We have configured eviction at the data region: level
DataRegionConfiguration drc = new DataRegionConfiguration();
drc.setInitialSize(Math.round((long)Math.max(bytesMaxSize/2,BYTES_10MB)));
drc.setMaxSize(bytesMaxSize);
drc.setPageEvictionMode(DataPageEvictionMode.RANDOM_2_LRU);
drc.setName(regionName);
drc.setPersistenceEnabled(isSharedNothing);


cfg.setStoreKeepBinary(true);
cfg.setCacheMode(CacheMode.PARTITIONED);
cfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
cfg.setName(name);

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported configuration with DataRegionConfiguration, RANDOM_2_LRU page eviction, a PARTITIONED cache, and CacheAtomicityMode.ATOMIC. Compare its eviction behavior with Transactional mode and inspect the cache and data-region entry points involved. Done means Atomic caches evict data instead of behaving as unlimited caches.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.