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 97d1364230..220d6af9ad 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 @@ private void setTimelineDelegationToken(Token delegationToken, 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())) {