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/trunk@1511100 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Turner Eagles 2013-08-06 19:51:33 +00:00
parent cb7c15cd37
commit 3e0203a3a4
3 changed files with 6 additions and 2 deletions

View File

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

View File

@ -242,6 +242,7 @@ public boolean remove(LocalizedResource rem, DeletionService delService) {
delService.delete(getUser(), getPathToDelete(rsrc.getLocalPath()));
}
decrementFileCountForLocalCacheDirectory(rem.getRequest(), rsrc);
LOG.info("Removed " + rsrc.getLocalPath() + " from localized cache");
return true;
}
}

View File

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