beam-commits mailing list archives

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


peay commented on BEAM-1751:

I just ran it with {{0.7.0-SNAPSHOT}} from this morning -- same issue, nothing changed.

Exception: java.lang.IllegalArgumentException: Start [xxxx] must be less than end [xxxx]<init>($BigtableSource.withEndKey($BigtableReader.splitAtFraction($BigtableReader.splitAtFraction(

When submitting the job,
15:34:11.767 [main] INFO - About to split into bundles
of size 805306368 with sampleRowKeys length 1 first element offset_bytes: 805306368
15:34:11.767 [main] INFO - Generated 1 splits. First
split: BigtableSource{tableId=apRadioProperties-default, filter=null, range=ByteKeyRange{startKey=[],
endKey=[]}, estimatedSizeBytes=805306368}

>From the worker logs:
"Proposing to split ByteKeyRangeTracker{range=ByteKeyRange{startKey=[xxxx], endKey=[]}, position=null}
at fraction 0.0 (key [xxxx])"    

> 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