ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Tikhonov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4324) ScanQuery throws incomprehensible exception when topology does not contain data nodes
Date Mon, 28 Nov 2016 16:30:58 GMT
Nikolay Tikhonov created IGNITE-4324:
----------------------------------------

             Summary: 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
             Fix For: 2.0


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.4#6332)

Mime
View raw message