ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yakov Zhdanov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1007) Race in data structures processor
Date Wed, 10 Jun 2015 14:42:00 GMT
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)

Mime
View raw message