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

Beam JIRA Bot commented on BEAM-6764:
-------------------------------------

This issue was marked "stale-P2" and has not received a public comment in 14 
days. It is now automatically moved to P3. If you are still affected by it, you 
can comment and move it back to P2.

> OutOfMemory Exception in Dataflow Spanner Write Mutations
> ---------------------------------------------------------
>
>                 Key: BEAM-6764
>                 URL: https://issues.apache.org/jira/browse/BEAM-6764
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>    Affects Versions: 2.9.0, 2.10.0, 2.11.0
>            Reporter: Joshua
>            Priority: P3
>
> Since I upgraded my apache beam sdk version to >= 2.9.0, I have been noticing 
> OOM exceptions while using the dataflow runner to write mutations to spanner. 
> I have been using n1-standard-4 since version 2.9.0. On that version, it 
> works. But on higher versions, I get the exception.
>  
> The stackdriver logs is provided below
> {code:java}
> java.lang.OutOfMemoryError: Java heap space
> java.util.ArrayList.<init>(ArrayList.java:152)
> org.apache.beam.sdk.io.gcp.spanner.SpannerIO$GatherBundleAndSortFn.initSorter(SpannerIO.java:1056)
> org.apache.beam.sdk.io.gcp.spanner.SpannerIO$GatherBundleAndSortFn.startBundle(SpannerIO.java:1049)
> {code}
> I have a very basic PTransform for writing to Spanner:
> {code:java}
> SpannerIO.write().withInstanceId(options.getSpannerInstanceId()) 
> .withDatabaseId(options.getSpannerDatabaseId()) 
> .withProjectId(options.getProject()) 
> .withFailureMode(SpannerIO.FailureMode.REPORT_FAILURES);
> {code}



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

Reply via email to