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

apache_beam.io.gcp.experimental.spannerio_write_it_test.SpannerWriteIntegrationTest.test_spanner_update fails in Python3.7 Postcommits

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • None
    • None
    • io-py-gcp
    • None

    Description

      For some reason only Python 3.7 suite is failing with this error.

      >             self)
      E         apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
      E         Traceback (most recent call last):
      E           File "apache_beam/runners/common.py", line 1198, in apache_beam.runners.common.DoFnRunner.process
      E           File "apache_beam/runners/common.py", line 537, in apache_beam.runners.common.SimpleInvoker.invoke_process
      E           File "/usr/local/lib/python3.7/site-packages/apache_beam/io/gcp/experimental/spannerio.py", line 1251, in process
      E             self.service_metric.call('ok')
      E         AttributeError: 'NoneType' object has no attribute 'call'
      E         
      E         During handling of the above exception, another exception occurred:
      E         
      E         Traceback (most recent call last):
      E           File "/usr/local/lib/python3.7/site-packages/dataflow_worker/batchworker.py", line 646, in do_work
      E             work_executor.execute()
      E           File "/usr/local/lib/python3.7/site-packages/dataflow_worker/executor.py", line 210, in execute
      E             op.finish()
      E           File "apache_beam/runners/worker/operations.py", line 736, in apache_beam.runners.worker.operations.DoOperation.finish
      E           File "apache_beam/runners/worker/operations.py", line 738, in apache_beam.runners.worker.operations.DoOperation.finish
      E           File "apache_beam/runners/worker/operations.py", line 739, in apache_beam.runners.worker.operations.DoOperation.finish
      E           File "apache_beam/runners/common.py", line 1253, in apache_beam.runners.common.DoFnRunner.finish
      E           File "apache_beam/runners/common.py", line 1234, in apache_beam.runners.common.DoFnRunner._invoke_bundle_method
      E           File "apache_beam/runners/common.py", line 1265, in apache_beam.runners.common.DoFnRunner._reraise_augmented
      E           File "apache_beam/runners/common.py", line 1232, in apache_beam.runners.common.DoFnRunner._invoke_bundle_method
      E           File "apache_beam/runners/common.py", line 475, in apache_beam.runners.common.DoFnInvoker.invoke_finish_bundle
      E           File "apache_beam/runners/common.py", line 480, in apache_beam.runners.common.DoFnInvoker.invoke_finish_bundle
      E           File "apache_beam/runners/common.py", line 1401, in apache_beam.runners.common._OutputProcessor.finish_bundle_outputs
      E           File "apache_beam/runners/worker/operations.py", line 215, in apache_beam.runners.worker.operations.SingletonConsumerSet.receive
      E           File "apache_beam/runners/worker/operations.py", line 707, in apache_beam.runners.worker.operations.DoOperation.process
      E           File "apache_beam/runners/worker/operations.py", line 708, in apache_beam.runners.worker.operations.DoOperation.process
      E           File "apache_beam/runners/common.py", line 1200, in apache_beam.runners.common.DoFnRunner.process
      E           File "apache_beam/runners/common.py", line 1281, in apache_beam.runners.common.DoFnRunner._reraise_augmented
      E           File "apache_beam/runners/common.py", line 1198, in apache_beam.runners.common.DoFnRunner.process
      E           File "apache_beam/runners/common.py", line 537, in apache_beam.runners.common.SimpleInvoker.invoke_process
      E           File "/usr/local/lib/python3.7/site-packages/apache_beam/io/gcp/experimental/spannerio.py", line 1251, in process
      E             self.service_metric.call('ok')
      E         AttributeError: 'NoneType' object has no attribute 'call' [while running 'WriteToSpanner/Writing to spanner']
      

      Attachments

        Issue Links

          Activity

            People

              ningk Ning
              tvalentyn Valentyn Tymofieiev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m