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

Limit the size of bundles of elements emitted by SDK into the data output stream. #31581

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

tvalentyn
Copy link
Contributor

No description provided.

sdks/python/apache_beam/runners/worker/data_plane.py Outdated Show resolved Hide resolved
@@ -639,8 +639,13 @@ def _write_outputs(self):
streams = [self._to_send.get()]
try:
# Coalesce up to 100 other items.
total_size_bytes = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or streams[0].ByteSize()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@tvalentyn
Copy link
Contributor Author

Run Python 3.8 PostCommit

@github-actions github-actions bot added the build label Jun 13, 2024
@tvalentyn
Copy link
Contributor Author

Filed #31596 for a test flake.

@tvalentyn tvalentyn marked this pull request as ready for review June 13, 2024 20:41
@tvalentyn tvalentyn merged commit 635372f into apache:master Jun 13, 2024
93 of 94 checks passed
@tvalentyn tvalentyn deleted the large_elements branch June 13, 2024 20:41
kennknowles added a commit that referenced this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants