Iceberg processor: S3 discovery still lists every segment and rereads every footer on each poll
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
Start by comparing the Iceberg processor’s S3 discovery path with the SQL processor change in issue #482. Trace how mapped topics are listed and how segment footers are verified during each poll. Done means discovery is limited to mapped topics, verified footers are cached, and a newly written mapped topic is found on the next poll without rereading every footer.
由索引模型根据 Issue 内容生成。
描述
What happens
The Iceberg processor's S3 discovery still lists every object under the namespace and then reads each segment footer, one at a time, on every poll. #482 fixed this only in the SQL processor: that processor now lists only the topics a query reads, and it keeps verified footers in a bounded cache.
With a large topic already in the bucket, new topics take minutes to appear, and every poll does thousands of object GETs.
Steps to reproduce
- Write a topic of 2000 segments into the bucket (one record per produce request is enough).
- Run the Iceberg processor against that bucket with S3 discovery, and mappings for other topics that are not yet written.
- Write those mapped topics (a few segments each) and wait for the processor to create the tables.
Actual
On main at fc9ed22, with 2000 existing segments in the bucket plus a smaller topic, every poll cost about 2100 object GETs (one footer read per complete segment, sequentially). New mapped topics were written at 19:59:45 and their tables were created at 20:03:30 and 20:03:54 (Europe/Malta, UTC+1), 3 to 4 minutes later.
Expected
Discovery should list only the mapped topics, remember verified footers, and pick up a new topic on the next poll without rereading every footer in the bucket.
Version
main at fc9ed229387ae7172a4e22711da27be82636037b (v2.2.0).
- 主要语言
- Go
- 星标
- 59
- 派生
- 16
- 平均合并
- 5 小时 46 分钟
- 30 天内合并 PR
- 121
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
KafScale/platform 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 58/100
维护者通常 1 天内回复
查看 KafScale/platform 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
erigontech/erigon#27233 ·
维护者通常 1 天内回复
-
area/tests needs-triage theme/ci-dx
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 90/100
kubescape/kubescape#6095 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
oras-project/oras-go#1853 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100