The document does exist, it was created before I tried the code snippet.
The question can be boiled down to why do I get different CAS values on:
-
Java SDK - bucket.get(“docId”).cas()
-
N1QL - SELECT meta(b).cas FROM
bucketName
b WHERE meta(b).id = “docId”
Might it be similar to this issue found in the Node.js SDK?
https://issues.couchbase.com/browse/JSCBC-196
J.