Log-and-swallow post-kickoff in DeleteEppResource

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130787799
This commit is contained in:
ctingue 2016-08-19 13:51:37 -07:00 committed by Ben McIlwain
parent 0e4ce70610
commit 61bd6159c9

View file

@ -104,6 +104,7 @@ public abstract class DeleteEppResourceAction<T extends EppResource> implements
mapper.setTargetResource(resourceKey); mapper.setTargetResource(resourceKey);
reducer.setClient(requestingClientId, isSuperuser); reducer.setClient(requestingClientId, isSuperuser);
logger.infofmt("Executing Delete EPP resource mapreduce for %s", resourceKey); logger.infofmt("Executing Delete EPP resource mapreduce for %s", resourceKey);
try {
response.sendJavaScriptRedirect(createJobPath(mrRunner response.sendJavaScriptRedirect(createJobPath(mrRunner
.setJobName("Check for EPP resource references and then delete") .setJobName("Check for EPP resource references and then delete")
.setModuleName("backend") .setModuleName("backend")
@ -114,6 +115,10 @@ public abstract class DeleteEppResourceAction<T extends EppResource> implements
// Add an extra shard that maps over a null domain. See the mapper code for why. // Add an extra shard that maps over a null domain. See the mapper code for why.
new NullInput<DomainBase>(), new NullInput<DomainBase>(),
EppResourceInputs.createEntityInput(DomainBase.class))))); EppResourceInputs.createEntityInput(DomainBase.class)))));
} catch (Throwable t) {
logger.severefmt(
t, "Error while kicking off DeleteEppResource MR for %s", resource.getForeignKey());
}
} }
/** /**