Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-8825] Add limit on number of mutated rows to batching/sorting stages. #10380

Merged
merged 1 commit into from
Dec 16, 2019

Conversation

nielm
Copy link
Contributor

@nielm nielm commented Dec 13, 2019

Fixes a potential OOM when very narrow row mutations are added (ie
<5 cells, <100 bytes).

The overhead of storing a mutation is significant, so with the default
grouping of 5000*1000 cells, potentially many millions of mutated rows
can be stored in memory during the grouping phase, leading to an OOM.

This change adds a 3rd limit on the grouping - that a maximum of 500 rows
per batch (500K rows in the grouping stage).

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

Fixes a potential OOM when very narrow row mutations are added (ie
<5 cells, <100 bytes).

The overhead of storing a mutation is significant, so with the default
grouping of 5000*1000 cells, potentially many millions of mutated rows
can be stored in memory during the grouping phase, leading to an OOM.

This change adds a 3rd limit on the grouping - that a maximum of 500 rows
per batch (500K rows in the grouping stage).
@nielm
Copy link
Contributor Author

nielm commented Dec 13, 2019

@udim as requested.

@udim
Copy link
Member

udim commented Dec 13, 2019

Run Java PreCommit

2 similar comments
@udim
Copy link
Member

udim commented Dec 13, 2019

Run Java PreCommit

@udim
Copy link
Member

udim commented Dec 13, 2019

Run Java PreCommit

@udim
Copy link
Member

udim commented Dec 16, 2019

Will ignore Java_Examples_Dataflow (WindowedWordCountIT) test failure since this is a release branch

@udim udim merged commit 712ccb0 into apache:release-2.18.0 Dec 16, 2019
@nielm nielm deleted the limitrows branch April 27, 2020 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants