[infinispan-issues] [JBoss JIRA] (ISPN-7852) QueryInterceptor incorrectly relies on the return value of a RemoveCommand

Adrian Nistor (JIRA) issues at jboss.org
Mon May 22 07:48:00 EDT 2017


Adrian Nistor created ISPN-7852:
-----------------------------------

             Summary: QueryInterceptor incorrectly relies on the return value of a RemoveCommand
                 Key: ISPN-7852
                 URL: https://issues.jboss.org/browse/ISPN-7852
             Project: Infinispan
          Issue Type: Bug
          Components: Embedded Querying
    Affects Versions: 6.0.0.Final
            Reporter: Dan Berindei
            Assignee: Gustavo Fernandes
             Fix For: 9.1.0.Final, 9.0.1.Final, 9.1.0.Alpha1


QueryInterceptor uses the return value from RemoveCommand/ReplaceCommand to remove the value from the index.

But both RemoveCommand and ReplaceCommand have a variant with an expected value parameter, and this variant return a boolean value instead of the removed/replaced value. In that case, the previous value won't be removed from the index.

QueryInterceptor should probably use the previous value from the context entries to update the index instead.




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list