HADOOP-19922. Add configurable warn threshold for large IPC RPC request data length#8553
Open
cxzl25 wants to merge 2 commits into
Open
HADOOP-19922. Add configurable warn threshold for large IPC RPC request data length#8553cxzl25 wants to merge 2 commits into
cxzl25 wants to merge 2 commits into
Conversation
|
💔 -1 overall
This message was automatically generated. |
Add two unit tests to TestIPC: - testWarnDataLengthThreshold: verifies a WARN is logged when a request exceeds ipc.data.length.warn.threshold but is within the hard limit - testWarnDataLengthThresholdDisabled: verifies no WARN is logged when the threshold is set to -1 (disabled) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
🎊 +1 overall
This message was automatically generated. |
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.
Description of PR
The IPC `Server` currently enforces a hard upper limit on RPC request size via `ipc.maximum.data.length` (default 128 MB). Requests that exceed this limit are rejected immediately. However, requests that are abnormally large but still within the limit pass through silently, potentially causing GC pressure and cascading failures before any operator is aware.
This patch adds a configurable warn threshold `ipc.data.length.warn.threshold` (default 64 MB). When a request exceeds this threshold but is still within the hard limit, a WARN log is emitted. Set to `-1` to disable.
How was this patch tested?
Added two unit tests to `TestIPC`:
For code changes:
AI Tooling
If an AI tool was used:
where is the name of the AI tool used.
https://www.apache.org/legal/generative-tooling.html