beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Chawla (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (BEAM-724) NullPointerException in Snapshot State
Date Thu, 06 Oct 2016 19:17:20 GMT

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

Sumit Chawla reassigned BEAM-724:
---------------------------------

    Assignee: Sumit Chawla

> NullPointerException in Snapshot State
> --------------------------------------
>
>                 Key: BEAM-724
>                 URL: https://issues.apache.org/jira/browse/BEAM-724
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-flink
>            Reporter: Sumit Chawla
>            Assignee: Sumit Chawla
>
> This seems like a timing Issue.  Its reproducible in case where Kafka topic does not
exist yet.  The UDF operator run is not called yet, but other thread calls snapshot before
that:
> {code}
> java.lang.RuntimeException: Error while triggering checkpoint for Source: Read(UnboundedKafkaSource)
-> ParDo(KafkaRecordToCTuple) -> ParDo(NetFlowToFlowContentTransformation) -> ParDo(FlowContentToRelationsTransformation)
-> ParDo(GraphToJsonTransformation) -> AnonymousParDo -> ParDo(KafkaWriter) (1/1)
> 	at org.apache.flink.runtime.taskmanager.Task$2.run(Task.java:949)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.Exception: Failed to draw state snapshot from function: null
> 	at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.snapshotOperatorState(AbstractUdfStreamOperator.java:132)
> 	at org.apache.flink.streaming.runtime.tasks.StreamTask.performCheckpoint(StreamTask.java:598)
> 	at org.apache.flink.streaming.runtime.tasks.StreamTask.triggerCheckpoint(StreamTask.java:565)
> 	at org.apache.flink.runtime.taskmanager.Task$2.run(Task.java:941)
> 	... 5 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.beam.runners.flink.translation.wrappers.streaming.io.UnboundedSourceWrapper.snapshotState(UnboundedSourceWrapper.java:340)
> 	at org.apache.beam.runners.flink.translation.wrappers.streaming.io.UnboundedSourceWrapper.snapshotState(UnboundedSourceWrapper.java:54)
> 	at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.snapshotOperatorState(AbstractUdfStreamOperator.java:129)
> 	... 8 more
> {code}



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

Mime
View raw message