Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3795

QueryInterceptor incorrectly relies on the return value of a RemoveCommand

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gustavonalle Gustavo Fernandes
                  Reporter:
                  dan.berindei Dan Berindei
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: