-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-18003. Add a method appendIfAbsent for CallerContext #3644
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
🎊 +1 overall
This message was automatically generated. |
Hi @goiri @aajisaka @tasanuma @jojochuang @iwasakims @ferhui , please take a look at this. Thank you very much. |
We discussed here #3635 earlier. |
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestCallerContext.java
Outdated
Show resolved
Hide resolved
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestCallerContext.java
Outdated
Show resolved
Hide resolved
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.
Thanks for updating it. +1.
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Merged. Thanks for your contribution, @tomscut! |
Cherry-picked from 573b358f by Owen O'Malley
JIRA: HADOOP-18003.
As we discussed here #3635.
In some cases, when we need to add a
key:value
to theCallerContext
, we need to check whether the key already exists in the outer layer, which is a bit of a hassle. To solve this problem, we can add a new methodCallerContext#appendIfAbsent
.