[
https://issues.apache.org/jira/browse/HADOOP-18003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
tomscut updated HADOOP-18003:
-----------------------------
Description:
As we discussed here [#3635.|#discussion_r746873078]
In some cases, when we need to add a _key:value_ to the {_}CallerContext{_}, 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 method
{_}CallerContext#appendIfAbsent{_}.
was:
As we discussed here [#3635.|#discussion_r746873078].]
In some cases, when we need to add a _key:value_ to the {_}CallerContext{_}, 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 method
{_}CallerContext#appendIfAbsent{_}.
> Add a method appendIfAbsent for CallerContext
> ---------------------------------------------
>
> Key: HADOOP-18003
> URL: https://issues.apache.org/jira/browse/HADOOP-18003
> Project: Hadoop Common
> Issue Type: New Feature
> Reporter: tomscut
> Assignee: tomscut
> Priority: Minor
>
> As we discussed here [#3635.|#discussion_r746873078]
> In some cases, when we need to add a _key:value_ to the {_}CallerContext{_},
> 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 method
> {_}CallerContext#appendIfAbsent{_}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]