]
Pedro Ruivo updated ISPN-7998:
------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Multi-key write commands assume all segments have CH.getNumOwners()
owners
--------------------------------------------------------------------------
Key: ISPN-7998
URL:
https://issues.jboss.org/browse/ISPN-7998
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.1.0.Beta1, 9.0.3.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.1.0.Final
When handling multi-key write commands, both {{TriangleDistributionInterceptor}} and
{{NonTxDistributionInterceptor}} assume that there are no backup owners when
{{consistentHash.getNumOwners() == 1}}. But during rebalance some segments can have more
than {{getNumOwners()}} owners, as the write CH is a union of the current and future CHs,
while {{getNumOwners()}} always returns the value in the cache configuration.