A node has failed, searches keep running on the second copy. But the first write request hangs for 36 seconds and ends with 500 and "Please retry". Anything that gives up on the first error fails during an outage on exactly this request.
Symptom
kubectl -n rag exec -i curl -- \
curl -s -w '\n%{http_code} %{time_total}\n' -X POST \
'http://qdrant.rag:6333/collections/wissen/points/payload?wait=true' \
-H 'Content-Type: application/json' -d @- < stempel.json
{"status":{"error":"Service internal error: Some replica of shard 0 failed to apply operation and deactivation timed out after 30s. Consistency of this update is not guaranteed. Please retry. Failed peer: 3100333476874010, error: Service internal error: Tonic status error: code: 'The service is currently unavailable', message: \"Failed to connect to http://qdrant-0.qdrant-headless:6335/, error: transport error\""},"time":36.442713979}
500 36.450822
An ordinary write request while rag2 with qdrant-0 is down.
Diagnosis
Ask Qdrant's cluster state – who is leader and where messages fail.
kubectl -n rag exec curl -- \
curl -s http://qdrant-1.qdrant-headless:6333/cluster \
> cluster-aus.json
jq '.result | {raft_info, message_send_failures}' cluster-aus.json
{
"raft_info": {
"term": 5,
"commit": 38,
"pending_operations": 0,
"leader": 1806199031829577,
"role": "Leader",
"is_voter": true
},
"message_send_failures": {
"http://qdrant-0.qdrant-headless:6335/": {
"count": 27,
…
Causes
No majorityA leader alone is one of two votes
qdrant-1 wants the copy on qdrant-0 marked as dead. That is a change to the cluster state and needs a majority – with two peers it cannot be reached.
30 secondsQdrant gives up only after 30 seconds
Then it reports "Consistency of this update is not guaranteed. Please retry." The change is then only in the copy on the remaining peer.
Fix
kubectl -n rag exec -i curl -- \
curl -s -w '\n%{http_code} %{time_total}\n' -X POST \
'http://qdrant.rag:6333/collections/wissen/points/payload?wait=true' \
-H 'Content-Type: application/json' -d @- < stempel.json
{"result":{"operation_id":28,"status":"completed"},"status":"ok","time":0.005125115}
200 0.010683
Don't: Run ingestion jobs without retries. backoffLimit 1 gives the job a second attempt.
RAG infrastructure on Kubernetes hands-on, day 11: replication and node failure – two Qdrant peers, copies and a node switched off.
Go to day 11 →
FAQ
Is the change lost with this error?
Qdrant does not guarantee it ("Consistency of this update is not guaranteed"). So retry the request – afterwards the change was on the remaining peer in the course; whether the returning peer receives it is checked after switching it back on.
Why does qdrant-0 not restart on the other node?
Its local-path volume lives on exactly one node. The pod stays Pending until rag2 is back; protection against node failure comes from the copies, not the volume.