YARN-2343. Improve NMToken expire exception message. Contributed by Li Lu

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1615270 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jian He 2014-08-01 23:44:48 +00:00
parent 1ba3f89714
commit a41c314373
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,8 @@ Release 2.6.0 - UNRELEASED
YARN-1994. Expose YARN/MR endpoints on multiple interfaces. (Craig Welch,
Milan Potocnik, Arpit Agarwal via xgong)
YARN-2343. Improve NMToken expire exception message. (Li Lu via jianhe)
OPTIMIZATIONS
BUG FIXES

View File

@ -514,6 +514,8 @@ public class ContainerManagerImpl extends CompositeService implements
messageBuilder.append("\nThis token is expired. current time is ")
.append(System.currentTimeMillis()).append(" found ")
.append(containerTokenIdentifier.getExpiryTimeStamp());
messageBuilder.append("\nNote: System times on machines may be out of sync.")
.append(" Check system time and time zones.");
}
if (unauthorized) {
String msg = messageBuilder.toString();