You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Roman Shtykh (JIRA)" <ji...@apache.org> on 2016/07/07 07:15:11 UTC

[jira] [Commented] (IGNITE-3433) Uninformative error message for affinity function

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

Roman Shtykh commented on IGNITE-3433:
--------------------------------------

Looks like the fix (IGNITE-1355) is in 1.6 already. Is the affected version 1.5?
Executing the code from the master branch gives a nice "Failed to find cache" message ;)

> Uninformative error message for affinity function
> -------------------------------------------------
>
>                 Key: IGNITE-3433
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3433
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>    Affects Versions: 1.6
>            Reporter: Nikolay Tikhonov
>            Priority: Minor
>             Fix For: 1.7
>
>         Attachments: SimpleTest.patch
>
>
> Ignite public API allows to get an affinity function for not existing cache. Any method calls lead to NPE and user getting the following error message:
> {noformat}
> java.lang.NullPointerException
> 	at org.apache.ignite.internal.processors.affinity.GridAffinityProcessor$AffinityInfo.access$1800(GridAffinityProcessor.java:538)
> 	at org.apache.ignite.internal.processors.affinity.GridAffinityProcessor$CacheAffinityProxy.allPartitions(GridAffinityProcessor.java:766)
> 	at org.apache.ignite.internal.processors.cache.GridCacheAffinityApiSelfTest.testAllPartitionsException(GridCacheAffinityApiSelfTest.java:241)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1724)
> 	at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
> 	at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1662)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> Need to change the message and make it more clear..



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