mirror of
https://github.com/google/nomulus
synced 2026-01-03 19:54:18 +00:00
Log-and-swallow post-kickoff in DeleteEppResource
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130787799
This commit is contained in:
@@ -104,16 +104,21 @@ 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);
|
||||||
response.sendJavaScriptRedirect(createJobPath(mrRunner
|
try {
|
||||||
.setJobName("Check for EPP resource references and then delete")
|
response.sendJavaScriptRedirect(createJobPath(mrRunner
|
||||||
.setModuleName("backend")
|
.setJobName("Check for EPP resource references and then delete")
|
||||||
.runMapreduce(
|
.setModuleName("backend")
|
||||||
mapper,
|
.runMapreduce(
|
||||||
reducer,
|
mapper,
|
||||||
ImmutableList.of(
|
reducer,
|
||||||
// Add an extra shard that maps over a null domain. See the mapper code for why.
|
ImmutableList.of(
|
||||||
new NullInput<DomainBase>(),
|
// Add an extra shard that maps over a null domain. See the mapper code for why.
|
||||||
EppResourceInputs.createEntityInput(DomainBase.class)))));
|
new NullInput<DomainBase>(),
|
||||||
|
EppResourceInputs.createEntityInput(DomainBase.class)))));
|
||||||
|
} catch (Throwable t) {
|
||||||
|
logger.severefmt(
|
||||||
|
t, "Error while kicking off DeleteEppResource MR for %s", resource.getForeignKey());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user