[ 
https://issues.apache.org/jira/browse/HADOOP-17276?focusedWorklogId=491640&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-491640
 ]

ASF GitHub Bot logged work on HADOOP-17276:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Sep/20 02:23
            Start Date: 27/Sep/20 02:23
    Worklog Time Spent: 10m 
      Work Description: ferhui commented on a change in pull request #2327:
URL: https://github.com/apache/hadoop/pull/2327#discussion_r495517635



##########
File path: 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java
##########
@@ -108,24 +117,86 @@ public String toString() {
   }
 
   /** The caller context builder. */
-  public static final class Builder {
-    private final String context;
+  public static final class Builder implements Configurable {

Review comment:
       Great suggestions!
   
   >Add a new method public append(String key, String value) which calls
   > sb.append(key).append(separator).append(value)
   
   For example, maybe context contains multi items and it is 
"mr_xxxx,ip:a.b.c.d", here item separator is ',' and key/value separator is 
':', the separator we define is item separator. should we add method public 
append(String key, String value, separator)?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 491640)
    Time Spent: 3h 10m  (was: 3h)

> Extend CallerContext to make it include many items
> --------------------------------------------------
>
>                 Key: HADOOP-17276
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17276
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Hui Fei
>            Assignee: Hui Fei
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> Now context is string. We need to extend the CallerContext because context 
> may contains many items.
> Items include 
> * router ip
> * MR or CLI
> * etc



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to