Skip to content

Qdrant: snapshot restore is green, but points are missing

AItested on Ubuntu 24.04, k3s v1.37.3+k3s1, Qdrant 1.20.3, Collection mit 3 Shards auf 3 Peers, Restore in eine frische Installation

The restore answers ok, the collection is green, searches return hits. Only the exact count shows it: 367,231 instead of 1,183,514 points.

Symptom

curl -sS -H "api-key: $(cat dr-key)" -H "Content-Type: application/json" -X POST http://10.43.90.230:6333/collections/glove/points/count -d "{\"exact\":true}"
{"result":{"count":367231},"status":"ok","time":0.156863366}

The collection snapshot of qdrant-1 was restored into a fresh one-pod installation and confirmed with ok.

Diagnosis

The shard overview shows three shards – only shard 0 has points. The status is green anyway.

jq -c "{lokal: [.result.local_shards[] | {shard_id, points_count, state}], fern: [.result.remote_shards[] | {shard_id, peer_id, state}]}" glove-dr-cluster.json
{"lokal":[{"shard_id":0,"points_count":367231,"state":"Active"},{"shard_id":1,"points_count":0,"state":"Active"},{"shard_id":2,"points_count":0,"state":"Active"}],"fern":[]}
{"status":"green","points_count":367231,"shard_number":3}

Causes

snapshotA collection snapshot covers only one peer

Qdrant creates the collection snapshot on the peer that receives the request and packs only its local shards. With three shards on three peers, that is a third of the data.

statusgreen does not check completeness

green only means index and optimizer are done – not that all data is there.

Fix

Create an empty collection with the same configuration (dimension, distance, shards) and restore each shard's snapshot (shard snapshot API). In the course this took 23 s, the index was ready immediately, and the search hits matched production. Then compare an exact count with the original.

Don't: Send the snapshot command through the Service. It lands on any peer – in the course this returned 7,680-byte snapshots with ok that restored to 0 points.

▶
Break it yourself and find it – free
Vector database engineering on Kubernetes, day 12: backup and DR – the off-site store.
Go to day 12 →

FAQ

How do I catch this before a real incident?

With a dress rehearsal – restore into a fresh installation and count exactly against the original. In the course the rehearsal took 72 s.

Can Qdrant restore directly from S3?

In the course Qdrant wrote directly to S3 but rejected s3:// when restoring. The restore used a presigned URL.

Related error patterns

More