What is difference in sequence number returned by above two ? AFAIK both return latest sequence number, which might not have been replicated or persisted to disk.
Difference I am aware of,
GetAllMutationTokensRequest returns values only for a single node. So calling it once for each node should be equivalent to GetLastCheckpointRequest.
GetLastCheckpointRequest returns 1 if no changes, GetAllMutationTokensRequest returns 0.
We use getCurrentState as shown in https://forums.couchbase.com/t/getallmutationtokensrequest-generates-incomplete-response/8166/2. For clusters which have failed over and rebalanced couple of times, it seems getCurrentState returns no changes from last call, even when there are changes. Earlier we used GetAllMutationTokensRequest, and it returned proper high sequence number. We are using core-io 1.2.8 .