From d484dd01f05774e8e564d8d00a37e2c68c2f4bab Mon Sep 17 00:00:00 2001 From: Camelia Dumitru Date: Fri, 6 Sep 2024 11:08:36 +0100 Subject: [PATCH] Added extra logging for exceptions when indexing orgs --- .../core/manager/impl/OrgDisambiguatedManagerImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java b/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java index 0ea7b06e63e..3a47eb28b31 100644 --- a/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java +++ b/orcid-core/src/main/java/org/orcid/core/manager/impl/OrgDisambiguatedManagerImpl.java @@ -91,7 +91,12 @@ synchronized public void processOrgsForIndexing() { entities = orgDisambiguatedDaoReadOnly.findOrgsPendingIndexing(startIndex, indexingBatchSize); LOGGER.info("Found chunk of {} disambiguated orgs for indexing", entities.size()); for (OrgDisambiguatedEntity entity : entities) { - processDisambiguatedOrgInTransaction(entity); + try { + processDisambiguatedOrgInTransaction(entity); + } + catch(Exception ex) { + LOGGER.error("@@@FAILED to process the disambiguated org" + entity.getId() + " source id: " + entity.getSourceId(), ex); + } } startIndex = startIndex + indexingBatchSize; } while (!entities.isEmpty());