[ 
https://issues.apache.org/jira/browse/GEODE-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421683#comment-15421683
 ] 

ASF subversion and git services commented on GEODE-1745:
--------------------------------------------------------

Commit f8f8986f39616114a97e7e7b9bad3af712e52f1f in incubator-geode's branch 
refs/heads/develop from [~nnag]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=f8f8986 ]

GEODE-1745: Fixed the comparison during query re-evaluation using 
CompactMapRangeIndexes

        * Initially the object to be searched was compared with the tuple 
returned by the Compact Range Index which contains the object to be searched 
and a key
        * This led to mismatch to occur resulting in false query results.
        * Fixed to compare with the first element of the tuple returned by the 
compact range index.


> In case of Compact Map Range Index, query reevaluation results in false 
> results
> -------------------------------------------------------------------------------
>
>                 Key: GEODE-1745
>                 URL: https://issues.apache.org/jira/browse/GEODE-1745
>             Project: Geode
>          Issue Type: Bug
>            Reporter: nabarun
>
> This happens if the query needs to be re-evaluated because updates / index 
> updates happened quite close to the query execution. During re-evaluation a 
> single object is being compared with a tuple returned by CRI which does 
> contain the object to be matched but along with a key. This mis-match results 
> in a wrong query result. 
> Fix: In CompactRangeIndex.java, while we are in the method evaluateEntry, we 
> do a special check when compact map range indexes are used, and make sure the 
> comparison is between the object to be searched and the first element of the 
> tuple.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to