Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p0-criticalPriority P0: a release blocker or a critical defectscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Description
Problem
Checked at main on 2026-11-22.
- A full
devops ai rag index --include-kbrun (started 04:16 UTC) stopped at 04:47 UTC with exit 1, at 19456 of 66310 docs chunks: "Error upserting points into 'devops_docs': Unexpected Response: 502 (Bad Gateway)". The body was an HTML error page of the proxy. The Qdrant pod had 0 restarts, so the 502 came from the path in front of Qdrant. _is_transient_qdrant_error(src/devops_cli/ai/rag/qdrant.py:68) counts onlyResponseHandlingExceptionand some connection words as transient. qdrant-client 1.20.0 raisesUnexpectedResponsewithstatus_code502 for this answer, so_execute_with_retrydoes not retry, and_upsert_batch_with_retrystops the run at the first 502.- The run lost 31 min of work. The embedding batches already have a retry and a circuit breaker (fix(ai): rag index skips data fixtures and survives a failed batch #6717), but the upsert of their points does not.
Proposed remedy
- Count
UnexpectedResponsewithstatus_code502, 503 or 504 (and 429) as transient in_is_transient_qdrant_error, so that_execute_with_retryretries it with its backoff. - Keep each other status (400, 401, 403, 404, 500) as a permanent error.
Acceptance criteria
- A test gives
_execute_with_retryoneUnexpectedResponsewith status 502 and then a success, and the call returns the success. - A test shows that status 400 is not retried.
Person steps
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p0-criticalPriority P0: a release blocker or a critical defectscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 22, 2026
A 31-minute indexing job exits 1 at the first 502, which is a service job failure.Both retry a transient 503, but #5532 covers cluster service HTTP reads while this candidate covers Qdrant upsert in qdrant.py.docs(openspec): plan the Qdrant retry of gateway errors (#6757)
fix(rag): retry a Qdrant request after a 429, 502, 503 or 504 answer (#…
docs(testing): state the error answers of the loopback Qdrant server (#…
docs(openspec): archive the Qdrant retry of gateway errors (#6757)
docs(rag): name the UnexpectedResponse retry type in the retries panel (
devops-cli-service commentedon Nov 22, 2026
Released in v0.194.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.194.0
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 13:47 UTC