With Infinispan v9, my app uses a distributed async cache mode where number of cluster-wide data replicas is 3.
Let's say data owner/replica of cache entry 123 is in Nodes A, B, C.
With this, I have two questions (assuming they were not caused by network issues)
- If Node C enquires for entry 123, is it possible that Node C will find the entry missing due to replication delay?
- If Node D enquires for entry 123, is it possible that Node D will find the entry missing due to some sort of lag?
Assuming node
Aas primary owner of entry 123 (each key has 1 primary owner andN-1backup owners, whereNis the number of replicas)Ccan read stale values due to replication lag.D), it first tries to fetch the value from the primary owner (nodeA). IfAdoesn't reply in time, then it goes to the next owner (nodeB) and so one.Now, if
Areplies in time, it won't read the stale the value. Otherwise, it may read the stale value from nodeBorCYou have this information (and more) in the documentation.