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:
parent
ce28aebfba
commit
75e9f9f3ed
|
@ -1143,6 +1143,9 @@ Release 0.23.10 - UNRELEASED
|
|||
|
||||
IMPROVEMENTS
|
||||
|
||||
YARN-985. Nodemanager should log where a resource was localized (Ravi
|
||||
Prakash via jeagles)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -242,6 +242,7 @@ class LocalResourcesTrackerImpl implements LocalResourcesTracker {
|
|||
delService.delete(getUser(), getPathToDelete(rsrc.getLocalPath()));
|
||||
}
|
||||
decrementFileCountForLocalCacheDirectory(rem.getRequest(), rsrc);
|
||||
LOG.info("Removed " + rsrc.getLocalPath() + " from localized cache");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -193,8 +193,8 @@ public class LocalizedResource implements EventHandler<ResourceEvent> {
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue