[
https://issues.apache.org/jira/browse/IGNITE-8286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443494#comment-16443494
]
ASF GitHub Bot commented on IGNITE-8286:
----------------------------------------
GitHub user shroman opened a pull request:
https://github.com/apache/ignite/pull/3871
IGNITE-8286: ScanQuery ignore setLocal with non local partition.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shroman/ignite IGNITE-8286
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/3871.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3871
----
commit f4c751c98840154fc29d069582de2b272b6e14a5
Author: shroman <rshtykh@...>
Date: 2018-04-19T02:38:14Z
IGNITE-8286: ScanQuery ignore setLocal with non local partition.
----
> ScanQuery ignore setLocal with non local partition
> --------------------------------------------------
>
> Key: IGNITE-8286
> URL: https://issues.apache.org/jira/browse/IGNITE-8286
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Alexander Belyak
> Assignee: Roman Shtykh
> Priority: Major
>
> 1) Create partitioned cache on 2+ nodes cluster
> 2) Select some partition N, local node should not be OWNER of partition N
> 3) execute: cache.query(new ScanQuery<>().setLocal(true).setPartition(N))
> Expected result:
> empty result (probaply with logging smth like "Trying to execute local query
> <query> with non local partition N") or even throw exception
> Actual result:
> executing (with ScanQueryFallbackClosableIterator) query on remote node.
> Problem is that we execute local query on remote node.
> Same behaviour can be achieved if we get empty node list from
> GridCacheQueryAdapter.node() by any reasons, for example - if we run "local"
> query from non data node from given cache (see
> GridDiscoveryNamager.cacheAffinityNode(ClusterNode node, String cacheName) in
> GridcacheQueryAdapter.executeScanQuery()
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)