XDCR Key Duplication Detection
I want to use CouchBase in multiple data centers, and one goal is to avoid having duplicate keys. I understand that once the data is replicated, then the document will be available in all data centers, but is there a way to manage or detect key duplication before it is "eventually consistent"?
Say two users, each in a different data center, both try to store a document with key "ABC" at precisely the same time. Who wins? What's the behavior?