OTLP HTTP endpoint hangs in certain conditions
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- aws, postgresql, rust
Línea de trabajo
Empieza siguiendo la solicitud OTLP a través de quickwit_serve::otlp_api::rest_handler y quickwit_ingest::ingest_v2::router; después, inspecciona quickwit_indexing::source::queue_sources::shared_state en torno a la poda de shards. Reproduce el problema con el protobuf OTLP válido proporcionado mientras la fuente de archivos SQS está activa, y compara el comportamiento después de desactivarla. Se considera terminado cuando las solicitudes OTLP válidas reciben una respuesta sin quedarse bloqueadas durante la rotación de shards.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
In a single-node Quickwit 0.9.0-nightly deployment with a Postgres metastore and an SQS file source running at ~1500 files/minute, the OTLP HTTP endpoint (POST /api/v1/otlp/v1/logs) hangs indefinitely. Quickwit logs report:
ERROR quickwit_serve::otlp_api::rest_handler:
otlp internal error: status: 'The service is currently unavailable',
self: "ingest service is unavailable (no shards available)"
ERROR quickwit_ingest::ingest_v2::router:
ingest request should not timeout as there is a timeout on independent ingest requests too.
timeout after 35000
ERROR quickwit_actors::actor_handle: actor-timeout actor="ControlPlane-..."
But the chitchat state shows an _ingest-source shard IS created and assigned to the indexer, and ingester.status=ready. The router cannot see the shard as assignable.
Environment
| Item | Value |
|---|---|
| Image | quickwit/quickwit:v0.9.0-rc (published 2026-04-19 on Docker Hub) |
| Deployment | Single-node via docker-compose, command: run |
| Host | AWS EC2, 4 vCPUs, not resource-constrained (CPU/memory under-utilised) |
| Target | aarch64-unknown-linux-gnu |
| Metastore | PostgreSQL |
| Storage | S3 (s3://…/indexes/, region eu-west-1) |
enabled_services (chitchat) |
metastore,searcher,control_plane,janitor,indexer |
ingester.status (chitchat) |
ready |
readiness (chitchat) |
READY |
(Yes, I did restart container)
Workload
-
Noisy index:
***-logswith an SQS file source (***-sqs-filesource) consuming S3 notifications. -
Sustained rate: ~1500 files per minute. Each S3 file becomes a distinct shard in the metastore:
INFO quickwit_metastore::metastore::postgres::metastore: opened shard index_uid=***-logs:01KNF3635YNGTBZCWQEY6943JP source_id=***-sqs-filesource shard_id=s3://***-logs-prod/.../1776710923-xxxxx.ndjson.gz leader_id= follower_id=Noneat roughly 15–20 log lines per second.
-
Target index for OTLP:
otel-logs-v0_9,ingest_settings.min_shards=1,_ingest-source(ingest-v2) present alongside_ingest-api-source.
Recurring error pattern in Quickwit logs
ERROR quickwit_actors::actor_handle: actor-timeout actor="ControlPlane-purple-6GTo"
ERROR quickwit_serve::otlp_api::rest_handler: otlp internal error: ... "ingest service is unavailable (no shards available)"
ERROR quickwit_ingest::ingest_v2::router: ingest request should not timeout... timeout after 35000
ERROR quickwit_indexing::source::queue_sources::shared_state: failed to prune shards error=TooManyRequests
ERROR quickwit_serve::rest: failed to serve connection: connection closed before message completed
The TooManyRequests from queue-sources correlates with the S3/SQS shard churn.
Direct Quickwit (bypassing any proxy) repros
curl -i --max-time 20 -X POST 'http://localhost:7280/api/v1/otlp/v1/logs' \
-H 'content-type: application/x-protobuf' \
-H 'qw-otel-logs-index: otel-logs-v0_9' \
--data-binary @valid-otlp.bin
# curl: (28) Operation timed out after 20001 milliseconds with 0 bytes received
A malformed or truncated protobuf body (\x00, or the first 50/100 bytes of a valid body) returns 400 "failed to decode Protobuf message" instantly — proving the request reaches Quickwit and the parse path is fast. Only full valid bodies hang.
Disabling the SQS file source unblocks OTLP
I temporarily disabled SQS file sources, then retried the Node OTLP client. OTLP started working within seconds — the log record landed in otel-logs-v0_9 on the first attempt.
After enabling sqs source, currently endpoint is responsive, I will post any additional updates.
- Lenguaje dominante
- Rust
- Estrellas
- 11.8k
- Forks
- 628
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 50
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quickwit-oss/quickwit
-
area:otel documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
quickwit-oss/quickwit#6686 ·
Los mantenedores suelen responder en 1 día
-
Add some examples of requests in the REST API reference docsPosiblemente ocupada @Cunninger la tomó hace 88 días. Abiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quickwit-oss/quickwit#4266 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
quickwit-oss/quickwit#3872 ·
Los mantenedores suelen responder en 1 día
-
Update docs on range queriesAbiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
quickwit-oss/quickwit#3666 ·
Los mantenedores suelen responder en 1 día
-
implement retry for ListTermsAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
quickwit-oss/quickwit#2769 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quickwit-oss/quickwit
Issues similares
-
p2 ready-mac
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
quickwit-oss/tantivy#3299 ·
Los mantenedores suelen responder en 1 día
-
`stream enable` fails with "already enabled" on every fresh session since streaming became always-onAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vercel-labs/agent-browser#2797 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
witchesofthehill/manabrew#1309 ·
Los mantenedores suelen responder en 1 día
-
bug help wanted ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
userFRM/egui-charts#4494 ·
Los mantenedores suelen responder en 1 día