beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sumitchawla <>
Subject [GitHub] incubator-beam pull request #1061: BEAM-724 - Null pointer fix
Date Thu, 06 Oct 2016 19:43:29 GMT
GitHub user sumitchawla opened a pull request:

    BEAM-724 - Null pointer fix

    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:
    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$
    	at java.util.concurrent.Executors$
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(
    	at java.util.concurrent.ThreadPoolExecutor$
    Caused by: java.lang.Exception: Failed to draw state snapshot from function: null
    	at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.snapshotOperatorState(
    	at org.apache.flink.streaming.runtime.tasks.StreamTask.performCheckpoint(
    	at org.apache.flink.streaming.runtime.tasks.StreamTask.triggerCheckpoint(
    	at org.apache.flink.runtime.taskmanager.Task$
    	... 5 more
    Caused by: java.lang.NullPointerException
    	at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.snapshotOperatorState(
    	... 8 more

You can merge this pull request into a Git repository by running:

    $ git pull beam_724_fix

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1061
commit 5da04d6a1c79e2daf17da435030dffad07a1d175
Author: Sumit Chawla <>
Date:   2016-10-06T19:42:20Z

    BEAM-724 - Null pointer fix


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message