From 16ba4f544f13d614c1ebd6101ee14f7714e0fc54 Mon Sep 17 00:00:00 2001 From: Varun Saxena Date: Tue, 22 Aug 2017 18:36:21 +0530 Subject: [PATCH] MAPREDUCE-6838. Addendum to fix code comment --- .../hadoop/yarn/client/api/impl/TimelineV2ClientImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineV2ClientImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineV2ClientImpl.java index 97d1364230e..220d6af9ad6 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineV2ClientImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineV2ClientImpl.java @@ -187,8 +187,7 @@ public class TimelineV2ClientImpl extends TimelineV2Client { if (collectorAddr == null || collectorAddr.isEmpty()) { collectorAddr = timelineServiceAddress; } - // Token need not be updated if either address or token service does not - // exist. + // Token need not be updated if both address and token service do not exist. String service = delegationToken.getService(); if ((service == null || service.isEmpty()) && (collectorAddr == null || collectorAddr.isEmpty())) {