we are trying to get CAS value for a given CB document we see some differences. When we get the document from Java SDK and get the CAS value it is displaying different value than the actual document meta cas value. any reason why is this different coming up?
CAS - actual CB - under meta - 0x0000776f93608316
from Getdocument API - 1622246483560562688
_sync.cas is used internally as part of Sync Gateway’s import processing, and isn’t part of the CAS check used for SDK operations. It’s stored in a system xattr (which is why you see it in meta), but it’s not intended (or required) for use by anyone other than Sync Gateway.