beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BEAM-1751) Singleton ByteKeyRange with BigtableIO and Dataflow runner
Date Fri, 24 Mar 2017 21:55:41 GMT


ASF GitHub Bot commented on BEAM-1751:

GitHub user dhalperi opened a pull request:

    [BEAM-1751] BigtableIO: trivial fixes to log messages


You can merge this pull request into a Git repository by running:

    $ git pull bigtable-string-fix

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2324


> Singleton ByteKeyRange with BigtableIO and Dataflow runner
> ----------------------------------------------------------
>                 Key: BEAM-1751
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-dataflow, sdk-java-gcp
>    Affects Versions: 0.5.0
>            Reporter: peay
>            Assignee: Daniel Halperin
> I am getting this exception on a smallish table of a couple hundreds of rows from Bigtable,
when running on Dataflow with a single worker.
> This doesn't occur with the direct runner on my laptop, only when running on Dataflow.
Backtrace is from Beam 0.5.
> {code}java.lang.IllegalArgumentException: Start [xxxxxxxxxx] must be less than end [xxxxxxxxxx]
> 	at
> 	at<init>(
> 	at
> 	at$BigtableSource.withEndKey(
> 	at$BigtableReader.splitAtFraction(
> 	at$BigtableReader.splitAtFraction(
> 	at org.apache.beam.runners.dataflow.DataflowUnboundedReadFromBoundedSource$BoundedToUnboundedSourceAdapter$ResidualSource.getCheckpointMark(
> 	at org.apache.beam.runners.dataflow.DataflowUnboundedReadFromBoundedSource$BoundedToUnboundedSourceAdapter$Reader.getCheckpointMark(
> 	at org.apache.beam.runners.dataflow.DataflowUnboundedReadFromBoundedSource$BoundedToUnboundedSourceAdapter$Reader.getCheckpointMark(
> 	at
> 	at
> 	at$700(
> 	at$
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> {code}
> This is in the log right before:
> {code}
> "Proposing to split ByteKeyRangeTracker{range=ByteKeyRange{startKey=[xxxxxxxxxx], endKey=[]},
position=null} at fraction 0.0 (key [xxxxxxxxxx])"   
> {code}
> I have replaced the actual key with {{xxxxxxxxxx}}, but it is always the same everywhere.
the end position is obtained by truncating the fractional part of {{size * fraction}}, such
that the resulting offset can just be zero if {{fraction}} is too small. `ByteKeyRange` does
not allow a singleton range, however. Since {{fraction}} is zero here, the call to {{splitAtFraction}}

This message was sent by Atlassian JIRA

View raw message