Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the short-circuit cache-key and logging changes.
No open issues 🎉
What changed in this PR
This PR reduces short-circuit read overhead in Ozone by avoiding reverse DNS lookups when constructing client cache keys and reducing routine connection logging.
Changes:
- Replace
getHostName()withgetHostString()in short-circuit client cache keys. - Move routine connection and socket-closure logs from INFO to DEBUG.
- Extract a command-independent request-key helper for response logging.
| File | Description |
|---|---|
| hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/helpers/BlockUtils.java | Extracts a shared client-ID and call-ID request-key helper. |
| hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/XceiverServerDomainSocket.java | Lowers routine peer logs to DEBUG and corrects the connection-counter spelling. |
| hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/Receiver.java | Uses command-independent request keys in logs and lowers normal closure logging to DEBUG. |
| hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientShortCircuit.java | Moves expected response-task closure logging to DEBUG. |
| hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientManager.java | Avoids reverse DNS lookups when generating short-circuit cache keys. |
Review effort: Balanced
Contributor
|
@yandrey321 please take a look |
Contributor
|
@ChenSammi how these numbers looks on x86 machine? M1 is not the target environment and network/memory performance differs from target x86 systems. |
Contributor
|
nit: I think you have the wrong Jira in the PR title |
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 pull request?
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-17899
How was this patch tested?
Same benchmark
getHostName() run
getHostString() run