Skip to content

Conversation

@DemetrisChr
Copy link
Contributor

KV_LOCKED should be exposed as cas_mismatch only for the unlock operation. This makes it consistent with the behaviour of other SDKs and the expectation of the relevant FIT test.

From the retry handling RFC:

Locked 0x09 (Reason: KV_LOCKED)
Note: do NOT retry on KV_LOCKED for the "Unlock" command (the retry handler should never see it in the first place! (Reason is that this needs to be surfaced as a cas mismatch exception to the user and not being retried

@avsej avsej merged commit bc560e2 into couchbase:main Nov 16, 2023
@DemetrisChr DemetrisChr deleted the cas-mismatch branch November 16, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants