Commit ef2cc3a5 authored by Niels Erik G. Nielsen's avatar Niels Erik G. Nielsen
Browse files

Version 2.11.4 with bug fix for Instances without holdings

  Ingest Instance even if no holdings element found in it
parent 8d4eae25
Pipeline #9771 failed with stages
in 0 seconds
......@@ -346,6 +346,14 @@ public class InventoryRecordStorage implements RecordStorage {
logger.info("Failed: " + instancesFailed + " instances, " + holdingsRecordsFailed + " holdings records, " + itemsFailed + " items");
}
}
} else {
instanceResponse = addInstanceRecord(instanceWithHoldingsItems);
if (instanceResponse != null && instancesLoaded % (instancesLoaded<1000 ? 100 : 1000) == 0) {
logger.info("" + instancesLoaded + " instances, " + holdingsRecordsLoaded + " holdings records, and " + itemsLoaded + " items ingested");
if (instancesFailed+holdingsRecordsFailed+itemsFailed>0) {
logger.info("Failed: " + instancesFailed + " instances, " + holdingsRecordsFailed + " holdings records, " + itemsFailed + " items");
}
}
}
timingsEntireRecord.time(startStorageEntireRecord);
return instanceResponse;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment