Files
seaweedfs/weed/worker/tasks/iceberg
940ecedbfb perf(iceberg): list each catalog dir once per scan (#13383)
* iceberg: list each catalog dir once per scan

The maintenance scan already lists every namespace of a bucket; it now
gathers the catalog roots from those entries instead of listing them all
again through CatalogRecordRoots (3 listings per directory -> 1).

Live stage-creates are still read, only when a table needs the check.
A namespace filter, or a bucket over 10000 table entries, keeps the
old path. A namespace that cannot be listed skips the bucket for the
pass; removeOrphans still rechecks before deleting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* iceberg: reuse listed namespaces past the gather cap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* iceberg: keep no stages from a failed read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3tables: describe the moving root as the one a record moves to

ExtendedKeyMoving holds the metadata an update is about to write, so the
extra root is the destination, not the one the record leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* iceberg: trim the scan's comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2026-12-04 10:26:10 -08:00
..