diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java index 98d7e82c70..b6e6f0c57a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java @@ -140,12 +140,8 @@ public Builder(String context) { } public Builder(String context, Configuration conf) { - if (isValid(context)) { - sb.append(context); - } - fieldSeparator = conf.get(HADOOP_CALLER_CONTEXT_SEPARATOR_KEY, - HADOOP_CALLER_CONTEXT_SEPARATOR_DEFAULT); - checkFieldSeparator(fieldSeparator); + this(context, conf.get(HADOOP_CALLER_CONTEXT_SEPARATOR_KEY, + HADOOP_CALLER_CONTEXT_SEPARATOR_DEFAULT)); } public Builder(String context, String separator) {