Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6451

Portability Pipeline eventually hangs on bundle registration

Details

    Description

      We've seen jobs using portability start off in a healthy state, but then eventually get stuck and hang on bundle registration. We see error logs from the worker harness:

      Processing stuck in step s01 for at least 06h30m00s without outputting or completing in state finish at 
      sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at 
      java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693) at 
      java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323) at 
      java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729) at 
      java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at 
      org.apache.beam.sdk.util.MoreFutures.get(MoreFutures.java:57) at 
      org.apache.beam.runners.dataflow.worker.fn.control.RegisterAndProcessBundleOperation.finish(RegisterAndProcessBundleOperation.java:277) at 
      org.apache.beam.runners.dataflow.worker.util.common.worker.MapTaskExecutor.execute(MapTaskExecutor.java:85) at 
      org.apache.beam.runners.dataflow.worker.fn.control.BeamFnMapTaskExecutor.execute(BeamFnMapTaskExecutor.java:119) at 
      org.apache.beam.runners.dataflow.worker.StreamingDataflowWorker.process(StreamingDataflowWorker.java:1226) at 
      org.apache.beam.runners.dataflow.worker.StreamingDataflowWorker.access$1000(StreamingDataflowWorker.java:141) at 
      org.apache.beam.runners.dataflow.worker.StreamingDataflowWorker$6.run(StreamingDataflowWorker.java:965) 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)
      

      Looking at the code, it looks like there are no timeouts on the Bundle Registration calls over the FnApi, which contributes to this hanging forever rather than giving a better failure.

      This bug report came from a customer running a python streaming pipeline using the new portability framework on Dataflow. Hopefully we can repro on our own in order to link to the job / logs.

      Attachments

        Issue Links

          Activity

            People

              Ardagan Mikhail Gryzykhin
              swegner Scott Wegner
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: