Keith Berkoben created BEAM-1977:
------------------------------------

             Summary: PubsubIO fails with NPE on ACK when running locally
                 Key: BEAM-1977
                 URL: https://issues.apache.org/jira/browse/BEAM-1977
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-core
    Affects Versions: 0.6.0
            Reporter: Keith Berkoben
            Assignee: Davor Bonaci


When running a PubsubIO-fed pipeline on a local machine, the pipeline runs for 
10sec and then fails with a NPE (I'd guess when trying to ACK messages?). 

Logs confirm I am successfully reading messages and writing them out to 
pubsubIO, at least for a while.

Stack trace: 
Exception in thread "main" java.lang.NullPointerException
        at 
org.apache.beam.sdk.io.PubsubUnboundedSource$PubsubReader.ackBatch(PubsubUnboundedSource.java:640)
        at 
org.apache.beam.sdk.io.PubsubUnboundedSource$PubsubCheckpoint.finalizeCheckpoint(PubsubUnboundedSource.java:313)
        at 
org.apache.beam.runners.direct.UnboundedReadEvaluatorFactory$UnboundedReadEvaluator.getReader(UnboundedReadEvaluatorFactory.java:174)
        at 
org.apache.beam.runners.direct.UnboundedReadEvaluatorFactory$UnboundedReadEvaluator.processElement(UnboundedReadEvaluatorFactory.java:127)
        at 
org.apache.beam.runners.direct.TransformExecutor.processElements(TransformExecutor.java:139)
        at 
org.apache.beam.runners.direct.TransformExecutor.run(TransformExecutor.java:107)
        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)





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to