HDFS-4277. SocketTimeoutExceptions over the DataXceiver service of a DN should print the DFSClient ID#8271
Open
balodesecurity wants to merge 1 commit intoapache:trunkfrom
Open
HDFS-4277. SocketTimeoutExceptions over the DataXceiver service of a DN should print the DFSClient ID#8271balodesecurity wants to merge 1 commit intoapache:trunkfrom
balodesecurity wants to merge 1 commit intoapache:trunkfrom
Conversation
…DN should print the DFSClient ID. Include previousOpClientName in the DataXceiver error string so that SocketTimeoutException logs (and all other DataXceiver error logs) show which DFSClient was connected at the time of the error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
💔 -1 overall
This message was automatically generated. |
Author
|
This change is purely additive to logging — it only includes the |
Author
|
The |
Author
Author
|
retest this please |
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.
Summary
SocketTimeoutException(or other error) occurs in the DataXceiver service, the log messages did not include the DFSClient ID, making it impossible to trace which client caused the error.previousOpClientName(the DFSClient ID) to the shared error string inrun()'s catch block, which covers all error paths includingSocketTimeoutExceptionduringREAD_BLOCK.clientNameto exception log messages directly inreadBlock(),writeBlock(), andtransferBlock()for completeness.Changes
DataXceiver.run(): includepreviousOpClientNamein the error string used across all exception branchesDataXceiver.readBlock(): addclientNametoSocketException(TRACE) andIOException(WARN) log messagesDataXceiver.writeBlock(): addclientnameto theIOExceptionlog messageDataXceiver.transferBlock(): addclientNameto theIOExceptionlog messageTest plan
TestDataXceiverBackwardsCompatpassesTestDataXceiverLazyPersistHintpasses🤖 Generated with Claude Code