[ 
https://issues.apache.org/jira/browse/BEAM-12756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499626#comment-17499626
 ] 

Luke Cwik commented on BEAM-12756:
----------------------------------

This was an internal Dataflow bug because of a conversion of a large double 
value needed to be turned into a saturated cast vs a static cast since in c++ a 
cast from a large double value beyond the bounds of an int64 returns the 
smallest negative integer.

> Negative value being returned for progress when using OffsetRangeTracker
> ------------------------------------------------------------------------
>
>                 Key: BEAM-12756
>                 URL: https://issues.apache.org/jira/browse/BEAM-12756
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-dataflow, sdk-java-core
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: P3
>         Attachments: job_logs.png
>
>
> range.getFrom() returns 1 and range.getTo() returns 9223372036854775807 
> (Long.MAX_VALUE).  In the returned Progress object, workCompleted is 0.0 and 
> workRemaining is 9.223372036854776E18
> Somehow, in the Dataflow backend, it becomes -9223372036854775808 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to