Iceberg processor: S3 discovery still lists every segment and rereads every footer on each poll
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- go
- Domain
- data-engineering, stream-processing
Research direction
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.
Written by the indexing model from the issue text.
Description
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).
- Dominant language
- Go
- Stars
- 59
- Forks
- 16
- Avg merge
- 5h 46m
- Merged PRs (30d)
- 121
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KafScale/platform
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
Maintainers usually reply within 1 day
All issues in KafScale/platform
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opensandbox-group/OpenSandbox#3278 ·
Maintainers usually reply within 1 day
-
type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightgauge/nightgauge#3819 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jasonfen/terminal-space-program#1075 ·
Maintainers usually reply within 1 day
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100