-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-17783. [ARR] Optimize the debug log of method asyncIpcClient to print concrete call info. #7686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…print concrete call info.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Hi, @slfan1989 @Hexiaoqiao @KeeProMise . Could you please help review this simple modification when you are free? Thanks a lot! |
|
Hi @hfutatzhanghb LGTM! cc @slfan1989 @Hexiaoqiao |
|
Hi @hfutatzhanghb LGTM! Let's wait for two days to see if anyone else has comments. |
| * that the task execution reflects the state of the original calling thread. | ||
| */ | ||
| public void transfer() { | ||
| Server.getCurCall().set(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hfutatzhanghb Thanks for the contribution! Why do we set it to null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slfan1989 Thanks a lot for your reviewing, we should reset Server.getCurCall here to avoid async responder thread use wrong ThreadLocal variable. For example, router always receives safemode_get response from NameNode, if we don't reset Server.getCurCall(), we will find the call information occurs in the debug log which is not accurate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hexiaoqiao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. +1 from my side.
|
hi @slfan1989 Do you have more comments? |
|
@hfutatzhanghb thanks for your contributions, @Hexiaoqiao @slfan1989 thanks for your review, merged |
|
Thanks @KeeProMise for merging. Thanks all for help reviewing! |
…print concrete call info. (apache#7686). Contributed by hfutatzhanghb. Reviewed-by: He Xiaoqiao <[email protected]> Reviewed-by: Shilun Fan <[email protected]> Signed-off-by: Jian Zhang <[email protected]>

Description of PR
Refer to HDFS-17783.
Currently, the debug log in method asyncIpcClient can not print the RpcCall information such as callId. clientIp, clientPort, callercontext. etc.
It print lambda expression object now which is not what we expected.