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

Division By Zero errors being thrown by new BQ Source

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: io-py-gcp, runner-dataflow
    • Labels:
      None

      Description

      Users are reporting issues with the BQ Source, where division by zero errors are being reported by Beam. A stack trace:

      Log: [1] An exception was raised when trying to execute the workitem 2053702133423558223 : Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dataflow_worker/batchworker.py", line 649, in do_work work_executor.execute() File "/usr/local/lib/python3.7/site-packages/dataflow_worker/executor.py", line 179, in execute op.start() File "dataflow_worker/native_operations.py", line 38, in dataflow_worker.native_operations.NativeReadOperation.start File "dataflow_worker/native_operations.py", line 39, in dataflow_worker.native_operations.NativeReadOperation.start File "dataflow_worker/native_operations.py", line 44, in dataflow_worker.native_operations.NativeReadOperation.start File "dataflow_worker/native_operations.py", line 48, in dataflow_worker.native_operations.NativeReadOperation.start File "/usr/local/lib/python3.7/site-packages/dataflow_worker/workercustomsources.py", line 69, in iter self._source.start_position, self._source.stop_position) File "/usr/local/lib/python3.7/site-packages/apache_beam/io/concat_source.py", line 78, in get_range_tracker start_position, stop_position, self._source_bundles) File "/usr/local/lib/python3.7/site-packages/apache_beam/io/concat_source.py", line 131, in init self._compute_cumulative_weights(source_bundles[start[0]:last]) + [1] * File "/usr/local/lib/python3.7/site-packages/apache_beam/io/concat_source.py", line 154, in _compute_cumulative_weights running_total.append(max(min_diff, min(1, running_total[-1] + w / total))) ZeroDivisionError: flo
      

       

      I am suspecting this issue: https://issues.apache.org/jira/browse/BEAM-2716
      https://issues.apache.org/jira/secure/AddComment!default.jspa?id=13341887

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pabloem Pablo Estrada
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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