[jira] [Commented] (IGNITE-4324) ScanQuery throws incomprehensible exception when topology does not contain data nodes
[ https://issues.apache.org/jira/browse/IGNITE-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045033#comment-16045033 ] William Do commented on IGNITE-4324: [~ntikhonov], yes it's all good thanks! > ScanQuery throws incomprehensible exception when topology does not contain > data nodes > - > > Key: IGNITE-4324 > URL: https://issues.apache.org/jira/browse/IGNITE-4324 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 1.7, 1.8 >Reporter: Nikolay Tikhonov >Assignee: William Do > Labels: newbie > Fix For: 2.1 > > Attachments: Tests.patch > > > ScanQuery throws incomprehensible exception when topology does not contain > data nodes (for example with node filter). See attached test. > {code} > java.lang.IllegalArgumentException: bound must be positive > at java.util.Random.nextInt(Random.java:388) > at org.apache.ignite.internal.util.lang.GridFunc.rand(GridFunc.java:677) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.nodes(GridCacheQueryAdapter.java:582) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.executeScanQuery(GridCacheQueryAdapter.java:527) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4119) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4094) > at > org.apache.ignite.internal.processors.cache.IgniteCacheProxy.iterator(IgniteCacheProxy.java:1979) > at > org.apache.ignite.internal.CacheFilterQueryTest.testScanQuery(CacheFilterQueryTest.java:90) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at junit.framework.TestCase.runTest(TestCase.java:176) > at > org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1768) > at > org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118) > at > org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1706) > at java.lang.Thread.run(Thread.java:745) > [ > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (IGNITE-4324) ScanQuery throws incomprehensible exception when topology does not contain data nodes
[ https://issues.apache.org/jira/browse/IGNITE-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042671#comment-16042671 ] Nikolay Tikhonov commented on IGNITE-4324: -- [~williamdo], Thank you for your contribution! I've reviewed your changes and have only minor notes. I've fixed them (code style and added test for partition cache). I've pushed changes to ignite-4324 branch. Could you look at it? If you don't have any objections, I'll merge the branch to master. > ScanQuery throws incomprehensible exception when topology does not contain > data nodes > - > > Key: IGNITE-4324 > URL: https://issues.apache.org/jira/browse/IGNITE-4324 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 1.7, 1.8 >Reporter: Nikolay Tikhonov >Assignee: William Do > Labels: newbie > Fix For: 2.1 > > Attachments: Tests.patch > > > ScanQuery throws incomprehensible exception when topology does not contain > data nodes (for example with node filter). See attached test. > {code} > java.lang.IllegalArgumentException: bound must be positive > at java.util.Random.nextInt(Random.java:388) > at org.apache.ignite.internal.util.lang.GridFunc.rand(GridFunc.java:677) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.nodes(GridCacheQueryAdapter.java:582) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.executeScanQuery(GridCacheQueryAdapter.java:527) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4119) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4094) > at > org.apache.ignite.internal.processors.cache.IgniteCacheProxy.iterator(IgniteCacheProxy.java:1979) > at > org.apache.ignite.internal.CacheFilterQueryTest.testScanQuery(CacheFilterQueryTest.java:90) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at junit.framework.TestCase.runTest(TestCase.java:176) > at > org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1768) > at > org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118) > at > org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1706) > at java.lang.Thread.run(Thread.java:745) > [ > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (IGNITE-4324) ScanQuery throws incomprehensible exception when topology does not contain data nodes
[ https://issues.apache.org/jira/browse/IGNITE-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16022074#comment-16022074 ] Denis Magda commented on IGNITE-4324: - [~ntikhonov], would you be able to review the fix? > ScanQuery throws incomprehensible exception when topology does not contain > data nodes > - > > Key: IGNITE-4324 > URL: https://issues.apache.org/jira/browse/IGNITE-4324 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 1.7, 1.8 >Reporter: Nikolay Tikhonov >Assignee: William Do > Labels: newbie > Fix For: 2.1 > > Attachments: Tests.patch > > > ScanQuery throws incomprehensible exception when topology does not contain > data nodes (for example with node filter). See attached test. > {code} > java.lang.IllegalArgumentException: bound must be positive > at java.util.Random.nextInt(Random.java:388) > at org.apache.ignite.internal.util.lang.GridFunc.rand(GridFunc.java:677) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.nodes(GridCacheQueryAdapter.java:582) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.executeScanQuery(GridCacheQueryAdapter.java:527) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4119) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4094) > at > org.apache.ignite.internal.processors.cache.IgniteCacheProxy.iterator(IgniteCacheProxy.java:1979) > at > org.apache.ignite.internal.CacheFilterQueryTest.testScanQuery(CacheFilterQueryTest.java:90) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at junit.framework.TestCase.runTest(TestCase.java:176) > at > org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1768) > at > org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118) > at > org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1706) > at java.lang.Thread.run(Thread.java:745) > [ > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (IGNITE-4324) ScanQuery throws incomprehensible exception when topology does not contain data nodes
[ https://issues.apache.org/jira/browse/IGNITE-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16008709#comment-16008709 ] ASF GitHub Bot commented on IGNITE-4324: GitHub user WilliamDo opened a pull request: https://github.com/apache/ignite/pull/1935 IGNITE-4324 Check node list is non-empty before query execution You can merge this pull request into a Git repository by running: $ git pull https://github.com/WilliamDo/ignite IGNITE-4324 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/1935.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 #1935 commit 5fc9cf9796c96208124f0d1ae363c6c557ec3b5c Author: William Do Date: 2017-05-12T21:18:20Z IGNITE-4324 Check node list is non-empty before selecting one for query execution > ScanQuery throws incomprehensible exception when topology does not contain > data nodes > - > > Key: IGNITE-4324 > URL: https://issues.apache.org/jira/browse/IGNITE-4324 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 1.7, 1.8 >Reporter: Nikolay Tikhonov >Assignee: William Do > Labels: newbie > Fix For: 2.1 > > Attachments: Tests.patch > > > ScanQuery throws incomprehensible exception when topology does not contain > data nodes (for example with node filter). See attached test. > {code} > java.lang.IllegalArgumentException: bound must be positive > at java.util.Random.nextInt(Random.java:388) > at org.apache.ignite.internal.util.lang.GridFunc.rand(GridFunc.java:677) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.nodes(GridCacheQueryAdapter.java:582) > at > org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.executeScanQuery(GridCacheQueryAdapter.java:527) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4119) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.igniteIterator(GridCacheAdapter.java:4094) > at > org.apache.ignite.internal.processors.cache.IgniteCacheProxy.iterator(IgniteCacheProxy.java:1979) > at > org.apache.ignite.internal.CacheFilterQueryTest.testScanQuery(CacheFilterQueryTest.java:90) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at junit.framework.TestCase.runTest(TestCase.java:176) > at > org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1768) > at > org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118) > at > org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1706) > at java.lang.Thread.run(Thread.java:745) > [ > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)