• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • ljacomet
  • Reporter: ljacomet
  • April 27, 2016
  • 1
  • Watchers: 2
  • January 05, 2017
  • January 05, 2017

Description

When a disk store sized in bytes is topped by a caching tier sized in entries and the latter one ends up creating an inverted pyramid, the disk store inline eviction fails to free the {{DiskMarker}}. Guilty code is in {{net.sf.ehcache.store.disk.Segment#faultInternal}} in the block {{if (incomingDiskSize < 0) {}}.

See this [discussion https://groups.google.com/forum/#!category-topic/ehcache-users/ehcache-core/Vq7kJPghkpE] which discovered the problem and which contains a test which exhibits the problem as long as the onheap size is changed to be between 191 and 1000.

Comments

Louis Jacomet Jacomet 2017-01-05

The fix for this was committed back in May, forgot to update the issue status.

Louis Jacomet Jacomet 2017-01-05

Marking closed since 2.10.3 and soon 2.8.9 are released