Iceberg processor: S3 discovery still lists every segment and rereads every footer on each poll

未关闭
#491 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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

  1. Write a topic of 2000 segments into the bucket (one record per produce request is enough).
  2. Run the Iceberg processor against that bucket with S3 discovery, and mappings for other topics that are not yet written.
  3. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

KafScale/platform 的其他 Issue

查看 KafScale/platform 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。