[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Conflict resolution on Syncrepl

Diego Lima wrote:
Hello all,

This is mostly a theoretical question. I currently have some OpenLDAP
multimaster clusters (using syncrepl and mirrormode) and although it
never happened before, what would happen if two (or more) masters
received a write request exactly at the same time? The entry would
have the same entryCSN on both servers and the contextCSN would be
updated at the same time? Would this lead to a situation where the
servers were actually out of sync but they would "think" they had the
same entries?

No. On a properly configured setup it is impossible for two servers to produce the same entryCSN (regardless of timestamp issues) since they each have unique serverIDs. Conflict resolution will always resolve consistently and deterministically in syncrepl.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/