shunping opened a new pull request, #39118: URL: https://github.com/apache/beam/pull/39118
`beam.Create` reshuffles elements by default, causing runners to split them into multiple independent bundles. Since `BatchElements` must flush at bundle boundaries, this splits elements into batches smaller than `min_batch_size` and breaks strict batch size assertions in tests. To fix it, we made the following changes: - Set `reshuffle=False` in `beam.Create` for affected tests to keep elements in a single bundle. - Add `test_global_batching_dofn_single_vs_multiple_bundles` to `util_test.py` to verify this behavior. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
