mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-03 08:30:55 -05:00
`commit_read_hashring` returns once the leader has applied the entry, but followers may not have applied it yet. The CommitRead handler calls `invalidate_clean_local_shards` for `old.nodes()`, which cancels any ongoing shard clean task. If the test's subsequent `cleanup?wait=true` request to a follower arrives just before that follower applies CommitRead, the cleanup task is started and then cancelled mid-flight, and the endpoint returns HTTP 500 "Failed to clean shard points due to cancellation, please try again". Add `wait_for_same_commit` after `commit_read_hashring` so every peer has applied the entry (and thus already invalidated any clean tasks that don't exist yet) before we issue cleanup. Observed flake: https://github.com/qdrant/qdrant/actions/runs/26259341982/job/77289143792 Co-authored-by: Cursor Agent <agent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>