[ 
https://issues.apache.org/jira/browse/BEAM-10004?focusedWorklogId=455171&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-455171
 ]

ASF GitHub Bot logged work on BEAM-10004:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Jul/20 01:18
            Start Date: 07/Jul/20 01:18
    Worklog Time Spent: 10m 
      Work Description: aaltay merged pull request #12142:
URL: https://github.com/apache/beam/pull/12142


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 455171)
    Time Spent: 50m  (was: 40m)

> ZeroDivisionError if source bundle smaller than 1mb
> ---------------------------------------------------
>
>                 Key: BEAM-10004
>                 URL: https://issues.apache.org/jira/browse/BEAM-10004
>             Project: Beam
>          Issue Type: Bug
>          Components: io-py-mongodb
>    Affects Versions: 2.20.0
>            Reporter: Corvin Deboeser
>            Assignee: Corvin Deboeser
>            Priority: P2
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> If the desired_bundle_size is lower than 1mb, then split returns only 
> SourceBundles with weight=0 which leads to a ZeroDivisionError down the line. 
> {noformat}
> ZeroDivisionError: float division by zero{noformat}
> This error is raised from _compute_cumulative_weights here:
> [https://github.com/apache/beam/blob/9f0cb649d39ee6236ea27f111acb4b66591a80ec/sdks/python/apache_beam/io/concat_source.py#L154]
>  
> Worked for me: Pulling the truncation from _get_split_keys 
> ([here|https://github.com/apache/beam/blob/9f0cb649d39ee6236ea27f111acb4b66591a80ec/sdks/python/apache_beam/io/mongodbio.py#L226])
>  into split instead.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to