]
Sanne Grinovero updated ISPN-4597:
----------------------------------
Affects Version/s: (was: 7.0.0.Alpha5)
Query interceptor should update index during commit
---------------------------------------------------
Key: ISPN-4597
URL:
https://issues.jboss.org/browse/ISPN-4597
Project: Infinispan
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Embedded Querying
Reporter: Dan Berindei
Assignee: Sanne Grinovero
Fix For: 7.0.0.Beta1
{{QueryInterceptor}} updates indexes during {{visitPrepareCommand}}. However, a tx that
was prepared successfully is not guaranteed to be actually committed (e.g. if another node
fails to prepare, or if another XA resource fails). The index should only be updated
during {{visitPrepareCommand}} if the prepare is 1-phase, otherwise it should be updated
during {{visitCommitCommand}}.