mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-23 11:11:00 -05:00
* Use cluster default shard transfer method for fallback When a WAL delta automatic transfer fails, the driver falls back to the method passed via `fallback_method`. This was hard-coded to `StreamRecords` (unless `prevent_unoptimized` was enabled), which is inconsistent with the 1.18.0+ default of `Snapshot` and ignores any configured `default_shard_transfer_method`. Use `Collection::default_shard_transfer_method()` instead, so the fallback matches the cluster default. With `prevent_unoptimized` we still pin to `Snapshot` to preserve deferred point state exactly (raw segment copy); stream_records would send deferred points but they would not be deferred on the target. Co-authored-by: Cursor <cursoragent@cursor.com> * Avoid wal_delta fallback, update fallback test If the cluster default transfer method is wal_delta, the same-method fallback would be refused by the driver. Use snapshot as a safe fallback in that case; snapshot is also the 1.18.0+ default. Update test_shard_wal_delta_transfer_fallback to assert the new snapshot fallback (was stream_records). Co-authored-by: Cursor <cursoragent@cursor.com> * Address clippy wildcard_enum_match_arm Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor Agent <agent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>