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
HDFS-16310. RBF: Add client port to CallerContext for Router #3635
Conversation
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
There's a failure with TestRouterDistCpProcedure but I don't see how it can be related. |
Thank @goiri for your review. This failed unit test is unrelated to the change. It failed because timeout and work fine locally. |
Hi @tasanuma @jojochuang @ferhui @ayushtkn , could you please take a look at this. Thank you very much. |
@tomscut With the latest commit, it seems Router adds a client port even if |
CallerContext.setCurrent( | ||
new CallerContext.Builder(origContext, contextFieldSeparator) | ||
.appendIfAbsent(CLIENT_IP_STR, Server.getRemoteAddress()) | ||
.appendIfAbsent(CLIENT_PORT_STR, |
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.
Just a note, we allow the line length up to 100 after HADOOP-17813.
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.
Just a note, we allow the line length up to 100 after HADOOP-17813.
Thank you for reminding me. This is good.
Thanks @tasanuma for your careful consideration and comments. This problem does exist at present. But |
@tomscut Thank you for your explanation. It makes sense to me. Now I'm +1. |
Thanks @tasanuma for your comment and the merge. |
Cherry-picked from 5b05068 by Owen O'Malley
JIRA: HDFS-16310.
We mentioned in #3538 that adding the client port to the CallerContext of the Router.