Project

General

Profile

Actions

Bug #6030

closed

Deleting a document causes the method itemAdded(ItemEvent<SystemMetadata> entryEvent) in the SysteMetadataEventListener class being called twice

Added by Jing Tao almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
07/08/2013
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

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

Actions

Also available in: Atom PDF