OTLP HTTP endpoint hangs in certain conditions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- aws, postgresql, rust
调研方向
首先跟踪 OTLP 请求经过 quickwit_serve::otlp_api::rest_handler 和 quickwit_ingest::ingest_v2::router 的路径,然后检查 quickwit_indexing::source::queue_sources::shared_state 中与 shard pruning 相关的部分。在 SQS 文件源处于活动状态时,使用提供的有效 OTLP protobuf 重现问题,然后比较禁用它之后的行为。完成的标准是:有效的 OTLP 请求能够收到响应,并且不会在 shard churn 期间挂起。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 11.8k
- 派生
- 628
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 50
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quickwit-oss/quickwit 的其他 Issue
-
area:otel documentation
难度 2/5 1-3 小时 新手友好度 68/100
quickwit-oss/quickwit#6686 ·
维护者通常 1 天内回复
-
Add some examples of requests in the REST API reference docs可能已有人在做 @Cunninger 于 88 天前认领。 未关闭enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
quickwit-oss/quickwit#4266 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 65/100
quickwit-oss/quickwit#3872 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 65/100
quickwit-oss/quickwit#3666 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
quickwit-oss/quickwit#2769 ·
维护者通常 1 天内回复
查看 quickwit-oss/quickwit 的全部 Issue
相似的 Issue
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)可能已有人在做 @G-darshan-32 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
clipy-recorder/clipy#164 · 1 条评论 ·
-
p2 ready-mac
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
quickwit-oss/tantivy#3299 ·
维护者通常 1 天内回复
-
P2
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
`stream enable` fails with "already enabled" on every fresh session since streaming became always-on未关闭
难度 2/5 1-3 小时 新手友好度 70/100
vercel-labs/agent-browser#2797 ·
维护者通常 1 天内回复