]
Tristan Tarrant updated ISPN-11381:
-----------------------------------
Fix Version/s: 11.0.0.Final
(was: 11.0.0.CR1)
AdvancedCache.getGroup(key) may return incomplete results during
state transfer
-------------------------------------------------------------------------------
Key: ISPN-11381
URL:
https://issues.redhat.com/browse/ISPN-11381
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.4.18.Final, 10.1.2.Final, 11.0.0.Alpha1
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 11.0.0.Final
{{AdvancedCache.getGroup(groupKey)}} returns all the keys that belong to a group.
If the originator is not an owner, the command is forwarded to the primary owner. If the
originator is a primary or a backup owner for the group key, the command is executed
locally.
During state transfer, a node may be a write owner for the group key but not a read
owner. Currently {{GroupingInterceptor}} uses
{{LocalizedCacheTopogy.isWriteOwner(groupKey)}} instead of {{isReadOwner(groupKey)}}, so
it executes the command on the originator instead of forwarding it to the primary owner.