diff options
author | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-03-05 14:43:14 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-03-05 15:26:28 +0000 |
commit | e83ef9dc59bc7bb87b22a77894ebbbe232b2a427 (patch) | |
tree | 8d7bc82d4e4ab0d411f3ff221f05e09d42cae06a /standalone-container | |
parent | ac065ac8784bb5e62de0db75ffa6436a389c8b31 (diff) |
Enforce document timestamp requirements for updates in backend
The document API has long since had a special field for update operations
where an optional expected _existing_ backend timestamp can be specified,
and where the update should only go through iff there is a timestamp
match.
This has been supported on the distributor all along, but only when
write-repair is taking place (i.e. rarely), but the actual backend
support has been lacking. No one has complained yet since this is
very much not an advertised feature, but if we want to e.g. use this
feature for improvements to batch updates we should ensure that it
works as expected.
With this commit, a non-zero "old timestamp" field is cross-checked
against the existing document, and the update is only applied if the
actual and expected timestamps match.
Diffstat (limited to 'standalone-container')
0 files changed, 0 insertions, 0 deletions