Repository navigation
feat(amber): reject nonpositive network batch sizes - #9640
Draft
Matthew-DWM wants to merge 1 commit into
Draft
Matthew-DWM wants to merge 1 commit into
Matthew-DWM wants to merge 1 commit into
Conversation
NetworkOutputBuffer accepted a data transfer batch size of 0 or less. Its `buffer.size >= batchSize` check is then true after every tuple, so a bad setting silently sent one message per tuple. The settings panel requires at least 1, but saved, imported and API-sent settings skip that check. The constructor now rejects a batch size below 1, so such a run fails at start with "Data transfer batch size must be at least 1, got <n>".
Contributor
Automated Reviewer SuggestionsBased on the
|
Matthew-DWM
marked this pull request as draft
November 23, 2026 17:48
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
NetworkOutputBuffernow rejects a batch size below 1 when it is built. Before, 0 or a negative value was accepted, and itsbuffer.size >= batchSizecheck was then true after every tuple, so the run silently sent one message per tuple.The settings panel already requires at least 1. Settings from saved or imported workflows and from the API (
SyncExecutionResource) skip that check and reach the buffer throughResourceAllocator→LinkConfig→OutputManager.In
NetworkOutputBufferSpec, one test replaces the characterization andpendingUntilFixedtests that were left for this change. It checks that 0, -1 andInt.MinValueare rejected with that message.This builds on #8090 by @carloea2.
Any related issues, documentation, discussions?
Closes #8089
How was this PR tested?
NetworkOutputBufferSpecpasses 17/17.AMBER_TEST_FILTER=skip-integration, 2430/2430) and integration tests (integration-only, 47/47) pass.scalafmtCheckAllandscalafixAll --checkare clean.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)