Project

General

Profile

Bug #542

Duplicate entries in xml_replication table

Added by Jing Tao over 17 years ago. Updated over 17 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
07/01/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
542

Description

During replication, when a hub replicate more than one documents to metacat B.
If the documents' home server is C which is not in B's xml_replication table,
server C will be added to B's xml_replication table. But when this done, it
will server two or three Cs in B's talbe.

I think this this becuase mutithread problem. We need to synchronize the
insert method.

History

#1 Updated by Jing Tao over 17 years ago

In DocumentImpl class, there is a method name insertServerIntoReplication
table. In that method, we will check a server if it is in the table and its
name equals local host. If not then insert it. This method was declared as
synchronized and static. So only one object of this class can access this
method.

Testing results showsed that it get rid of this bug.

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 542

Also available in: Atom PDF