Join GitHub today
Eviction with "eviction-percentage" does not work #6432
With the following properties:
Add 420 entries and IMap.size returns 378 whereas size should have been 320. This is consistently reproducible.
After discussion with @gurbuzali it turns out that the documentation at http://docs.hazelcast.org/docs/3.5/manual/html-single/hazelcast-documentation.html#configuring-map-eviction needs to be corrected to the following:
eviction-percentage: When max-size is reached, the specified percentage of a map's partition will be evicted. For example, if set to 25, 25% of the entries will be evicted. Setting this property to a smaller value will cause eviction of a smaller number of partition entries. Therefore, if entries are inserted frequently, smaller percentage values may lead to overheads. Valid values are integers between 0 and 100. The default value is 25.