Allow managed thread count in AvroIO
Open
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
Assessment
This issue has not been assessed yet.