Bug #6030
closedDeleting a document causes the method itemAdded(ItemEvent<SystemMetadata> entryEvent) in the SysteMetadataEventListener class being called twice
0%
Description
When we delete a document from the Metacat, the method itemAdded in the in the SysteMetadataEventListener class (Metacat-index module) will be called because the haszelcast service. However, i figure the method will be call twice even though i only delete one document. This only happens for the deleting, the inserting works fine.
Here is the log:
Jul 08, 2013 5:17:25 PM edu.ucsb.nceas.metacat.index.SystemMetadataEventListener itemAdded
INFO: ===================================calling SystemMetadataEventListener.itemAdded method
Jul 08, 2013 5:17:25 PM edu.ucsb.nceas.metacat.index.SystemMetadataEventListener itemAdded
INFO: ===================================adding the document urn:uuid:e54bd099-e616-4f0d-be9d-f80df0f42354
........
Jul 08, 2013 5:17:25 PM edu.ucsb.nceas.metacat.index.SystemMetadataEventListener itemAdded
INFO: ===================================calling SystemMetadataEventListener.itemAdded method
Jul 08, 2013 5:17:25 PM edu.ucsb.nceas.metacat.index.SystemMetadataEventListener itemAdded
INFO: ===================================adding the document urn:uuid:e54bd099-e616-4f0d-be9d-f80df0f42354