Nikolay Tikhonov created IGNITE-3433:
----------------------------------------

             Summary: 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


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)

Reply via email to