Skip to end of metadata
Go to start of metadata

What is a replication conflict?

Simple case


In a nutshell, let's assume that the Sender in node B processes transactions faster than the Sender in node A.
After steps (#1, #2) are completed as illustrated in the diagram above, the Receiver in node A cannot update the records since the before-value("10") in XLog is different from the current value("20")
We call this situation as a Replication Conflict.

Types of Conflict




The record in XLog already had been inserted


Before value of the record in XLog is different from the current value of the target column


Record in XLog already had been deleted

Conflict error message is written on $ALTIBASE_HOME/trc/altibase_rp.log.
for example,




ERR-11058(errno=0) The row already exists in a unique index.


ERR-61001(errno=0) A conflict has been occurred while executing the received statement.


ERR-61000(errno=0) The received record is not found in the database.

altibase_rp.log also contains information about the SQL statement which causes the conflict in the remote server.


It is important to analyze and address “replication conflicts” when using asynchronous replication. Asynchronous replication implements “eventual consistency”; an approach that has many benefits, yet requires additional care.

When using asynchronous replication, it is important to design the service to minimize conflicts. The way to avoid conflicts is to ensure that the same records are not updated on different systems concurrently. Designating one server as the “read-only” copy, partitioning the data based on primary key, or other approaches can be used to avoid replication conflicts.

If you want to know more in detail, please refer to this document

  • No labels