XDCR - display document sequence number


#1

Hi,

Couchbase version: 3.0.1CE
SDK: Java v2.2.2
I try to set up a XDCR but it seems to have a strange behaviour.
I read the following doc:
http://docs.couchbase.com/admin/admin/Tasks/xdcr-conflictResolution.html

But i don’t find any way to retrieve the sequence number from a document …
I use the LegacyDocument for key-value.

It try to print the CAS, but it only fallback on this value after the sequence number.
I have the following topology:

US <-- EU --> APAC

US and APAC are older cluster than EU.

I don’t know why EU mutations do not propagate to other cluster.
Do you have any idea ?

Here is an example of my data, ‘cas’ field is extract from AbstractDocument :

{
  profile: {
     last_write: "17/02/2016 16:43:16",
     cas: "709214865702373",
     uuid: "fef3cefa-6688-4aaf-9965-d2947109f738",
    revision: "559"
  },
  dc: "US"
},
{
  profile: {
    last_write: "17/02/2016 17:00:13",
    cas: "5275726067998169",
    uuid: "fef3cefa-6688-4aaf-9965-d2947109f738",
    revision: "782"
  },
  dc: "EU"
},
{
  profile: {
    last_write: "17/02/2016 16:43:16",
    cas: "709214865702373",
    uuid: "fef3cefa-6688-4aaf-9965-d2947109f738",
    revision: "559"
  },
  dc: "APAC"
}

#2

I answer for sharing.

I have set bidirectionnal XDCR to synchronize all the documents (and all the internal sequence number) and
it fixed the problem.

I will try to remove bidirectional XDCR in several days to see if there is a discrepancy.