Alexey Goncharuk created IGNITE-3456:
----------------------------------------

             Summary: Make sure EntryProcessor is always running on a OWNING 
partition
                 Key: IGNITE-3456
                 URL: https://issues.apache.org/jira/browse/IGNITE-3456
             Project: Ignite
          Issue Type: Improvement
          Components: cache
            Reporter: Alexey Goncharuk


Let's say I need to maintain some sort of an aggregate function over a 
partition. This aggregate is maintained using an entry processor, and before an 
update this entry processor queries this local aggregate.

If an entry processor is applied on a partition with a MOVING state, the state 
of the local aggregate is not valid because not all data has been preloaded. If 
entry processor is applied on an OWNING partition, the result is guaranteed to 
be correct.

Given that we have implemented late affinity assignment when a new node is 
assigned primary only when rebalancing is finished, this should be already 
maintained. We just need to add tests verifying the partition state in 
EntryProcessor.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to