ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Tikhonov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-3433) Uninformative error message for affinity function
Date Thu, 07 Jul 2016 07:26:11 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-3433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikolay Tikhonov updated IGNITE-3433:
-------------------------------------
    Fix Version/s:     (was: 1.7)
                   1.6

> 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.5.0.final
>            Reporter: Nikolay Tikhonov
>            Priority: Minor
>             Fix For: 1.6
>
>         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)

Mime
View raw message