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

Aperta
#491 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Go
Stelle
59
Fork
16
Merge medio
5h 46m
PR unite (30g)
121

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KafScale/platform

Tutte le issue di KafScale/platform

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.