Files
qdrant/lib/api
Tim Visée b07188854f Add unique token to clock tag, detect duplicate operations (#3739)
* Add unique token to clock tags

* Consider last token in clock map

* Mark potential problem with TODO, we might want to keep clock token

* Represent UUID in gRPC as bytes, keep token when converting gRPC to REST

* Do not panic on invalid UUID, propagate parse error

* Use helper function for clock tag conversion with error handling

* Fix accept/reject logic for clocks, accept higher/equal, update token

* Add test for accepting exactly the same last operation multiple times

* Update advance method description to elaborate on what is accepted

* Keep unique clock tag token in recovery point

* Fix WAL delta tests, don't expect rejection from forward proxy anymore

* Extend missing clocks in recovery point in a more efficient way

* Fix clock tick comparison logic in recovery point

* Apply suggestions from code review

Co-authored-by: Roman Titov <ffuugoo@users.noreply.github.com>

* use u64 as token

* Remove failable clock tag conversions, use direct conversion

---------

Co-authored-by: Roman Titov <ffuugoo@users.noreply.github.com>
Co-authored-by: generall <andrey@vasnetsov.com>
2024-03-05 17:16:31 +01:00
..
2024-03-05 16:57:08 +01:00