[jira] [Created] (IGNITE-1007) Race in data structures processor

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-1007) Race in data structures processor

Alexey Goncharuk (Jira)
Yakov Zhdanov created IGNITE-1007:
-------------------------------------

             Summary: Race in data structures processor
                 Key: IGNITE-1007
                 URL: https://issues.apache.org/jira/browse/IGNITE-1007
             Project: Ignite
          Issue Type: Bug
          Components: data structures
            Reporter: Yakov Zhdanov
            Priority: Critical
             Fix For: sprint-6


Please take a look at stack trace

{noformat}
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
        at
org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:236)
        ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
        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
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:455)
        ... 35 more
Caused by: java.lang.NullPointerException
        at
org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.getCollection(DataStructuresProcessor.java:804)
        at
org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.set(DataStructuresProcessor.java:1124)
        at
org.apache.ignite.internal.processors.datastructures.GridCacheSetProxy.readResolve(GridCacheSetProxy.java:548)
        ... 40 more
{noformat}

I suspect that {{utilityCache}} has not been initialized yet. We need to protect such places with latch or igniteFuture which should be released (completed) on the last line of "onKernalStart" and on the 1st of "onKernalStop" for safety.



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