YARN-985. Nodemanager should log where a resource was localized (Ravi Prakash via jeagles)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1511105 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Turner Eagles 2013-08-06 19:55:07 +00:00
parent ce28aebfba
commit 75e9f9f3ed
3 changed files with 6 additions and 2 deletions

View File

@ -1143,6 +1143,9 @@ Release 0.23.10 - UNRELEASED
IMPROVEMENTS IMPROVEMENTS
YARN-985. Nodemanager should log where a resource was localized (Ravi
Prakash via jeagles)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -242,6 +242,7 @@ class LocalResourcesTrackerImpl implements LocalResourcesTracker {
delService.delete(getUser(), getPathToDelete(rsrc.getLocalPath())); delService.delete(getUser(), getPathToDelete(rsrc.getLocalPath()));
} }
decrementFileCountForLocalCacheDirectory(rem.getRequest(), rsrc); decrementFileCountForLocalCacheDirectory(rem.getRequest(), rsrc);
LOG.info("Removed " + rsrc.getLocalPath() + " from localized cache");
return true; return true;
} }
} }

View File

@ -193,8 +193,8 @@ public class LocalizedResource implements EventHandler<ResourceEvent> {
LOG.warn("Can't handle this event at current state", e); LOG.warn("Can't handle this event at current state", e);
} }
if (oldState != newState) { if (oldState != newState) {
LOG.info("Resource " + resourcePath + " transitioned from " LOG.info("Resource " + resourcePath + (localPath != null ?
+ oldState "(->" + localPath + ")": "") + " transitioned from " + oldState
+ " to " + newState); + " to " + newState);
} }
} finally { } finally {