MAPREDUCE-6838. Addendum to fix code comment

This commit is contained in:
Varun Saxena 2017-08-22 18:36:21 +05:30
parent 08f40bcc7f
commit 16ba4f544f

View File

@ -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())) {