Andrey Kornev created IGNITE-7156:
-------------------------------------

             Summary: Disabling readFromBackup for a cache effectively disables 
near cache on non-affinity nodes
                 Key: IGNITE-7156
                 URL: https://issues.apache.org/jira/browse/IGNITE-7156
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 2.3
            Reporter: Andrey Kornev


This line in GridNearGetFuture:

{{boolean allowLocRead = !forcePrimary || 
cctx.localNode().equals(affNodes.get(0));}} [(github 
link)|https://github.com/apache/ignite/blob/1e8b5501ee9fde61f979c104b4d271a1a458eb1d/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearGetFuture.java#L434]

effectively disables Near Cache if "read from backup" is not enabled in the 
cache config and the local node is not one of the affinity nodes. Disabling 
backup reads should not affect near cache usage.

If this is by design (which would be unfortunate), then the javadocs of 
{{CacheConfiguration.setReadFromBackup(boolean)}} should be updated to reflect 
the behavior.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to