Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

XDCR conflict resolution

3 replies [Last post]
  • Login or register to post comments
Thu, 02/28/2013 - 04:41
cbpeter
Offline
Joined: 02/28/2013
Groups: None

Hi,

Refering to question (2) in this thread: http://www.couchbase.com/forums/thread/xdcr,
are there any plans for manual conflict resolution, or the possibility to get somehow notified of a (resolved) conflict?

In our use case, we probably need some control over conflict resolution, or at least get a notification so we can check whether the result is ok....

Regards
Peter

Top
  • Login or register to post comments
Thu, 02/28/2013 - 11:15
dipti
Offline
Joined: 11/02/2011
Groups:

Hi Peter,

We do have conflict management (where we provide the two documents that conflicted and let the app decide) on our roadmap. The earliest we may be able to release this is the next major release.

That said, I'd love to hear what you would like. Can you provide an example of what you'd ideally like to have?

Top
  • Login or register to post comments
Thu, 03/07/2013 - 01:35
dipti
Offline
Joined: 11/02/2011
Groups:

ping

Top
  • Login or register to post comments
Thu, 03/14/2013 - 08:37
cbpeter
Offline
Joined: 02/28/2013
Groups: None

Ideally, we would like to supply a conflict resolution function ourselves. Essentially, this should be a function that takes two parameters (the documents to merge) and return the merged document, but i can quickly see use cases were we need more info, e.g. which record is coming from which server or similar meta data. For example, image that a record contains address information as well as salary data and that for address data, server1 is leading and for salary data the other server is leading (hypothetical example, but you catch my drift).

Other scenario's i can think of is merging only updated data: suppose we have a record A that has only a changed surname and record B has only an address change. To merge only the changes (i.e. the merged record has the surname from A, but the address from B) we would have to know what "fields" are changed; in other words: we would have to have access to the previous version of the records too. I don't know whether this is possible though, i guess you are currently not sending over / keeping the previous record, are you?

A third scenario is that our conflict resolution function cannot decide and some manual intervention is needed. In that case, i can image that the conflict resolution does return a "provisional" merge and writes an event or audit record, that can be picked up later by some process that lets the user review or correct the merges done. To realize such a scenario, it must be possible for the conflict resolution function to write data (event/audit record) to the database.

Regards,
Peter

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker