Ignite Eviction is not working with Cache Mode as Atomic
- 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
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