MAPREDUCE-2985. Fixed findbugs warnings in ResourceLocalizationService. Contributed by Thomas Graves.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1169955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8332126c52
commit
c8383a5f49
@ -1296,6 +1296,9 @@ Release 0.23.0 - Unreleased
|
|||||||
MAPREDUCE-2979. Removed the needless ClientProtocolProvider configuration
|
MAPREDUCE-2979. Removed the needless ClientProtocolProvider configuration
|
||||||
from the hadoop-mapreduce-client-core module. (Siddharth Seth via vinodkv)
|
from the hadoop-mapreduce-client-core module. (Siddharth Seth via vinodkv)
|
||||||
|
|
||||||
|
MAPREDUCE-2985. Fixed findbugs warnings in ResourceLocalizationService.
|
||||||
|
(Thomas Graves via acmurthy)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -289,11 +289,12 @@ public void handle(LocalizationEvent event) {
|
|||||||
LocalizerContext ctxt = new LocalizerContext(
|
LocalizerContext ctxt = new LocalizerContext(
|
||||||
c.getUser(), c.getContainerID(), c.getCredentials());
|
c.getUser(), c.getContainerID(), c.getCredentials());
|
||||||
rsrcs = rsrcReqs.getRequestedResources();
|
rsrcs = rsrcReqs.getRequestedResources();
|
||||||
for (LocalResourceVisibility vis : rsrcs.keySet()) {
|
for (Map.Entry<LocalResourceVisibility, Collection<LocalResourceRequest>> e :
|
||||||
tracker = getLocalResourcesTracker(vis, c.getUser(),
|
rsrcs.entrySet()) {
|
||||||
|
tracker = getLocalResourcesTracker(e.getKey(), c.getUser(),
|
||||||
c.getContainerID().getAppId());
|
c.getContainerID().getAppId());
|
||||||
for (LocalResourceRequest req : rsrcs.get(vis)) {
|
for (LocalResourceRequest req : e.getValue()) {
|
||||||
tracker.handle(new ResourceRequestEvent(req, vis, ctxt));
|
tracker.handle(new ResourceRequestEvent(req, e.getKey(), ctxt));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -312,10 +313,11 @@ public void handle(LocalizationEvent event) {
|
|||||||
(ContainerLocalizationCleanupEvent) event;
|
(ContainerLocalizationCleanupEvent) event;
|
||||||
c = rsrcCleanup.getContainer();
|
c = rsrcCleanup.getContainer();
|
||||||
rsrcs = rsrcCleanup.getResources();
|
rsrcs = rsrcCleanup.getResources();
|
||||||
for (LocalResourceVisibility vis : rsrcs.keySet()) {
|
for (Map.Entry<LocalResourceVisibility, Collection<LocalResourceRequest>> e :
|
||||||
tracker = getLocalResourcesTracker(vis, c.getUser(),
|
rsrcs.entrySet()) {
|
||||||
|
tracker = getLocalResourcesTracker(e.getKey(), c.getUser(),
|
||||||
c.getContainerID().getAppId());
|
c.getContainerID().getAppId());
|
||||||
for (LocalResourceRequest req : rsrcs.get(vis)) {
|
for (LocalResourceRequest req : e.getValue()) {
|
||||||
tracker.handle(new ResourceReleaseEvent(req, c.getContainerID()));
|
tracker.handle(new ResourceReleaseEvent(req, c.getContainerID()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user