flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljoscha Krettek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-4149) Fix Serialization of NFA in AbstractKeyedCEPPatternOperator
Date Mon, 04 Jul 2016 14:55:11 GMT
Aljoscha Krettek created FLINK-4149:

             Summary: Fix Serialization of NFA in AbstractKeyedCEPPatternOperator
                 Key: FLINK-4149
                 URL: https://issues.apache.org/jira/browse/FLINK-4149
             Project: Flink
          Issue Type: Bug
          Components: CEP
    Affects Versions: 1.1.0
            Reporter: Aljoscha Krettek
            Priority: Blocker
             Fix For: 1.1.0

A job that uses CEP with event time fails upon restore with a {{NullPointerException}} in
{{NFA.process()}}. The reason seems to be that field {{computationStates}} is {{null}}. This
field is transient and read in a custom {{readObject()}} method.

In {{AbstractKeyedCEPPatternOperator}} this snipped is used to construct a {{StateDescriptor}}
for an {{NFA}} state:

new ValueStateDescriptor<NFA<IN>>(
    new KryoSerializer<NFA<IN>>((Class<NFA<IN>>) (Class<?>)
NFA.class, getExecutionConfig()),

It seems Kryo does not invoke {{readObject}}/{{writeObject}}. We probably need a custom {{TypeSerializer}}
for {{NFA}} to solve the problem.

This message was sent by Atlassian JIRA

View raw message