Unverified Commit f2b025c9 authored by Niels Erik's avatar Niels Erik Committed by GitHub
Browse files

Merge pull request #41 from indexdata/bugfix-ingest-instance-even-if-it-has-no-holdings

Version 2.11.4 with bug fix for Instances without holdings
parents 0b051065 0db8c20d
......@@ -3,7 +3,7 @@
<parent>
<groupId>com.indexdata</groupId>
<artifactId>localindices</artifactId>
<version>2.11.3</version>
<version>2.11.4</version>
<relativePath>..</relativePath>
</parent>
<artifactId>harvester-admin</artifactId>
......
......@@ -3,7 +3,7 @@
<parent>
<groupId>com.indexdata</groupId>
<artifactId>localindices</artifactId>
<version>2.11.3</version>
<version>2.11.4</version>
<relativePath>..</relativePath>
</parent>
<artifactId>harvester</artifactId>
......
......@@ -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;
......
......@@ -3,7 +3,7 @@
<parent>
<groupId>com.indexdata</groupId>
<artifactId>localindices</artifactId>
<version>2.11.3</version>
<version>2.11.4</version>
<relativePath>..</relativePath>
</parent>
<artifactId>masterkey-dal</artifactId>
......
......@@ -3,7 +3,7 @@
<parent>
<groupId>com.indexdata</groupId>
<artifactId>localindices</artifactId>
<version>2.11.3</version>
<version>2.11.4</version>
<relativePath>..</relativePath>
</parent>
<artifactId>oaipmh-lib</artifactId>
......
......@@ -3,7 +3,7 @@
<groupId>com.indexdata</groupId>
<artifactId>localindices</artifactId>
<packaging>pom</packaging>
<version>2.11.3</version>
<version>2.11.4</version>
<name>Harvesting suite</name>
<modules>
<module>oaipmh-lib</module>
......
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