]
Gustavo Fernandes updated ISPN-11128:
-------------------------------------
Summary: IndexMode.PRIMARY_OWNER should index data from State Transfer if the index is
non-shared (was: IndexMode.PRIMARY_OWNER should index state transfer data if the index is
non-shared)
IndexMode.PRIMARY_OWNER should index data from State Transfer if the
index is non-shared
----------------------------------------------------------------------------------------
Key: ISPN-11128
URL:
https://issues.redhat.com/browse/ISPN-11128
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 10.1.0.Final
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Priority: Major
The {{IndexMode.PRIMARY_OWNER}} strategy is suitable for single indexes cluster-wide,
that happens when using {{InfinispanIndexManager}} and {{ElasticSearchIndexManager}}. On
this case, an entry should be indexed only once since all new joining nodes will see the
global index.
For the cases where the index is local to each node (near-real-time and file system index
managers), the state transfer data should definitely be indexed, otherwise when ownership
of a key changes the entry will be kept in the 'old' owner.