YARN-3516. killing ContainerLocalizer action doesn't take effect when

private localizer receives FETCH_FAILURE status. Contributed by zhihai
xu
This commit is contained in:
Xuan 2015-04-23 16:40:40 -07:00
parent ac281e3fc8
commit 0b3f8957a8
2 changed files with 4 additions and 1 deletions

View File

@ -257,6 +257,9 @@ Release 2.8.0 - UNRELEASED
YARN-3434. Interaction between reservations and userlimit can result in
significant ULF violation (tgraves)
YARN-3516. killing ContainerLocalizer action doesn't take effect when
private localizer receives FETCH_FAILURE status.(zhihai xu via xgong)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -989,7 +989,7 @@ LocalizerHeartbeatResponse update(
case FETCH_FAILURE:
final String diagnostics = stat.getException().toString();
LOG.warn(req + " failed: " + diagnostics);
response.setLocalizerAction(LocalizerAction.DIE);
action = LocalizerAction.DIE;
getLocalResourcesTracker(req.getVisibility(), user, applicationId)
.handle(new ResourceFailedLocalizationEvent(
req, diagnostics));