Replies: 1 comment 1 reply
-
If the KV is replicated it can fail, depending on the version of the client that created the KV, reads can happen from any server that has a copy of the KV, this means that it is possible for this, for your create to have failed while the key was indeed valid (not deleted) but right then a delete happened. The client performed a read (which was satisfied from a replica - and not yet updated with the delete), and used that sequence to submit an update, which when received by the leader was found to be incorrect, because the delete was now at the next sequence. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
During an experiment, I came across the following scenario:
After the fact, I verified that, from the key's history (using the
nats kv history
command), the last operation on this key was in factDELETE
, the creation timestamp of the operation matched the logged time T, and the logged timestamp of the creation attempt was about 2 minutes after theDELETE
operation's timestamp.Environment:
Unfortunately, I have not been able to reproduce it, which is why I didn't create an issue with the "bug" label. However, I still wanted to ask whether there is any known scenario where create could fail with "wrong last sequence" after a delete was issued.
Beta Was this translation helpful? Give feedback.
All reactions