mirror of
https://github.com/google/nomulus
synced 2026-09-04 15:17:13 +00:00
Add host linker mapreduce for RDE imports
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=147025088
This commit is contained in:
committed by
Ben McIlwain
parent
6cdb3d81d3
commit
da1f83a7b4
@@ -163,18 +163,12 @@ public class RdeDomainImportAction implements Runnable {
|
||||
logger.infofmt("Domain %s was imported successfully", xjcDomain.getName());
|
||||
} catch (ResourceExistsException e) {
|
||||
// Record the number of domains already in the registry
|
||||
getContext().incrementCounter("domains skipped");
|
||||
getContext().incrementCounter("existing domains skipped");
|
||||
logger.infofmt("Domain %s already exists", xjcDomain.getName());
|
||||
} catch (Exception e) {
|
||||
getContext().incrementCounter("domain import errors");
|
||||
throw new DomainImportException(xjcDomain.getName(), xjcDomain.toString(), e);
|
||||
logger.severefmt(e, "Error processing domain %s; xml=%s", xjcDomain.getName(), xjcDomain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class DomainImportException extends RuntimeException {
|
||||
DomainImportException(String domainName, String xml, Throwable cause) {
|
||||
super(String.format("Error processing domain %s; xml=%s", domainName, xml), cause);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user