Project

General

Profile

Revision 8187

remove any index event errors if the pid has successfully been reindexed. https://projects.ecoinformatics.org/ecoinfo/issues/6089

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SystemMetadataEventListener.java
189 189
	        try {
190 190
	            data = new FileInputStream(objectPath);
191 191
	            solrIndex.update(pid.getValue(), obsoletesChain, systemMetadata, data);
192
                EventlogFactory.createIndexEventLog().remove(pid);
192 193
	        } catch (Exception e) {
193 194
	            String error = "SystemMetadataEventListener.itemAdded - could not comit the index into the solr server since " + e.getMessage();
194 195
	            writeEventLog(systemMetadata, pid, error);

Also available in: Unified diff