You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "utsav-pal (via GitHub)" <gi...@apache.org> on 2025/09/07 18:19:03 UTC
[PR] Update default max publish batch byte size calculation [beam]
utsav-pal opened a new pull request, #36082:
URL: https://github.com/apache/beam/pull/36082
**Addresses:** [#36067](https://github.com/apache/beam/issues/36067)
**Description:**
This PR updates the default value of `MAX_PUBLISH_BATCH_BYTE_SIZE_DEFAULT` in `PubsubIO.java` from 7.5MB (`((10 * 1000 * 1000) / 4) * 3`) to 10MB (`10 * 1000 * 1000`). This change aligns the Beam Java SDK's default Pub/Sub batch size limit with the documented Google Cloud Pub/Sub maximum message size, preventing unexpected failures when sending messages between 7.5MB and 10MB.
- The previous default (7.5MB) could cause confusing errors for users sending large messages, despite those messages being under Pub/Sub's official limit.
- With this change, users can now send any message up to the documented 10MB limit without extra configuration.
- The code comment is also updated to clarify this default matches the Pub/Sub limit.
**Checklist:**
- [x] Addresses #36067
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://github.com/apache/beam/blob/master/CONTRIBUTING.md#make-the-reviewers-job-easier).
To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI or the [workflows README](https://github.com/apache/beam/blob/master/.github/workflows/README.md) to see a list of phrases to trigger workflows.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update default max publish batch byte size calculation [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36082:
URL: https://github.com/apache/beam/pull/36082#issuecomment-3596384018
This pull request has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update default max publish batch byte size calculation [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36082:
URL: https://github.com/apache/beam/pull/36082#issuecomment-3264026066
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment `assign set of reviewers`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update default max publish batch byte size calculation [beam]
Posted by "sjvanrossum (via GitHub)" <gi...@apache.org>.
sjvanrossum commented on PR #36082:
URL: https://github.com/apache/beam/pull/36082#issuecomment-3266561909
Unless the JSON client has been removed this limit can't be changed yet, see #31800 for details.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update default max publish batch byte size calculation [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36082:
URL: https://github.com/apache/beam/pull/36082#issuecomment-3570628434
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update default max publish batch byte size calculation [beam]
Posted by "stankiewicz (via GitHub)" <gi...@apache.org>.
stankiewicz commented on PR #36082:
URL: https://github.com/apache/beam/pull/36082#issuecomment-3333554720
there are style errors:
```
[Incubating] Problems report is available at: file:///runner/_work/beam/beam/build/reports/problems/problems-report.html
* What went wrong:
Execution failed for task ':sdks:java:io:google-cloud-platform:spotlessJavaCheck'.
> The following files had format violations:
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java
@@ -1348,7 +1348,7 @@
?????*?Max?batch?byte?size.?Messages?are?base64?encoded?which?encodes?each?set?of?three?bytes?into
?????*?four?bytes.
?????*/
-????private?static?final?int?MAX_PUBLISH_BATCH_BYTE_SIZE_DEFAULT?=?10?*?1000?*?1000?;
+????private?static?final?int?MAX_PUBLISH_BATCH_BYTE_SIZE_DEFAULT?=?10?*?1000?*?1000;
????private?static?final?int?MAX_PUBLISH_BATCH_SIZE?=?100;
Run './gradlew :sdks:java:io:google-cloud-platform:spotlessApply' to fix these violations.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update default max publish batch byte size calculation [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #36082: Update default max publish batch byte size calculation
URL: https://github.com/apache/beam/pull/36082
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org