apache / apache/beam

Allow managed thread count in AvroIO

Open
#21,017 0 comments 0 reactions 0 assignees View on GitHub
avro files improvement io java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

During execution, the `ReadAllViaFileBasedSource` runs ReShuffle and creates an un-grouped set of file range readers.  This can easily cause OOM issues when the number of groups changes as there is no limit to the number of concurrent file reads.

 

Using Reshuffle.viaRandomKeys.withNumBuckets instead will allow the same default behavior, but lets the user configure the number of readers as and when needed.

Imported from Jira [BEAM-12685](https://issues.apache.org/jira/browse/BEAM-12685). Original Jira may contain additional context.
Reported by: dhercher.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.