If eviction strategy NONE is set, entries seems to be lost in RHDG 7

Solution Verified - Updated

Environment

  • Red Hat Data Grid (RHDG)
    • 7

Issue

  • Eviction is disabled in our configuration by using stategy=NONE or MANUAL but it seems that entries are lost.
  • Accessing different nodes in a REPL cache will have undeterministic results, some nodes seems to loose entries.

Resolution

To disable eviction the <memory> element can be completely removed if the JVM heap should be used to store the entries.

If the off-heap memory should be used it is necessary to add this, but to not use eviction the element should be empty like followed

<memory>
  <off-heap/>
</memory>

This will ensure that the entries are stores in off-heap memory and no eviction will happen.

There is an Content from issues.jboss.org is not included.enhancement to improve the logging information.

Root Cause

With the new evicion configuration

<memory>
  < [off-heap || object || binary] size=1 strategy=NONE...>
</memory>

The setting of strategy NONE or MANUAL will not disable eviction if a size > 0 is set, it will fall back to REMOVE with a debug message (which is disabled by default).

Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.