Gustavo Fernandes created ISPN-11299:
----------------------------------------
Summary: Stale values can be indexed during State Transfer
Key: ISPN-11299
URL:
https://issues.redhat.com/browse/ISPN-11299
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 10.1.1.Final
Reporter: Gustavo Fernandes
If an operation is discarded during state transfer because it was already modified
locally, the QueryInterceptor still propagates it to the index, leaving the index out of
sync.
Sequence of events:
* T1: State Transfer starts
* T2: The EWI (EntryWrappingInterceptor) starts tracking all non-state-transfer
operations
* T3: An entry is added locally
* T4: EWI stores the key
* T5: The same key arrives from State Transfer
* T6: QueryInterceptor indexes it (The QI is installed after EWI but indexing happens
before storing the entry in the data container)
* T7: The entry operation is not committed in the data container since it was tracked
before as ```DiscardPolicy{discardStateTransfer=true, discardXSiteStateTransfer=false}```
--
This message was sent by Atlassian Jira
(v7.13.8#713008)