[
https://issues.apache.org/jira/browse/GEODE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Huynh resolved GEODE-249.
-------------------------------
Resolution: Fixed
> PR Query retry with rebalanced bucket on local node can cause missing results
> -----------------------------------------------------------------------------
>
> Key: GEODE-249
> URL: https://issues.apache.org/jira/browse/GEODE-249
> Project: Geode
> Issue Type: Bug
> Components: querying
> Reporter: Jason Huynh
> Assignee: Jason Huynh
>
> If a PR Query fails on a remote node, the buckets that failed will need to be
> retried. It recalculates the buckets needed to be retried and which servers
> it needs to retry on. If a bucket happens to be rebalanced locally, the
> results from the retry on the local node will squash the results previously
> gathered for the local node.
> The code in question is in
> PartitionedRegionQueryEvaluator.executeQueryOnLocalNode():
> ...
> this.resultsPerMember.put(me, resultCollector);
> The solution would be similar to:
> MemberResultsList otherResults = (MemberResultsList)
> this.resultsPerMember.put(me, resultCollector);
> resultsCollector.addAll(otherResults);
> A test needs to be written and added
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)