[infinispan-dev] KeyAffinityService

Mircea Markus mmarkus at redhat.com
Fri Jun 14 15:43:17 EDT 2013



Sent from my iPhone

On 14 Jun 2013, at 20:08, Dan Berindei <dan.berindei at gmail.com> wrote:

> Just to be clear, KAS doesn't really allow you to pin a key to a certain node. It only gives you a key that maps to the given node the moment you called KAS.getKeyForAddress(Address) - by the time you call cache.put() with the "pinned" key, it may have already moved to a different node.

This can only happen if there is a topology change going on in between KAS call and the put. Or more generically, if there's a topology change at a further point in time the key2node aasociation may be lost.


More information about the infinispan-dev mailing list