Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-992

QueryInterceptor incorrectly relies on the return value of a RemoveCommand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.0.1
    • JDG 7.0.0 GA
    • Querying
    • None

      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.

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: