openhouse icon indicating copy to clipboard operation
openhouse copied to clipboard

feat(optimizer): [5/n] integrate remaining optimizer work for skeleton

Open mkuchenbecker opened this issue 6 months ago • 0 comments

Scope

Single large PR (per @mkuchenbecker's direction; will be triaged into follow-on PRs). Reimplements remaining mkuchenb/optimizer integration-branch work on top of opt-4's architecture (BinPacker / Bin / SchedulingCandidate; no REST between analyzer and scheduler).

The integration branch's older Analyzer + Submitter + REST design is not ported — opt-2/3/4 replaced it.

Roadmap

  • [ ] Step 2 — BatchedOrphanFilesDeletionSparkApp + Operations.deleteOrphanFilesWithMetrics()
  • [ ] Step 3 — CompleteOperationRequest carries per-table metrics (orphanFilesDeleted, orphanBytesDeleted, errorMessage, errorType)
  • [ ] Step 4 — HouseTables table_stats schema + upsert/get endpoints
  • [ ] Step 5 — Tables service on-commit metrics hook (OptimizerTableStatsClient invoked from IcebergSnapshotsServiceImpl)
  • [ ] Step 6 — Dockerfiles for optimizer-service / -analyzer / -scheduler + compose wiring (oh-hadoop-spark and oh-only)
  • [ ] Step 7 — End-to-end docker integration test + DEMO.md

Out of scope here

  • Splitting into smaller PRs (deferred until review).
  • Closing/merging opt-0..opt-4.
  • Updating code/docs/table-optimizer/STATE.md / ARCHITECTURE.md / EXTENDING.md to reflect the integrated state (follow-up after opt-5 takes shape).

Plan

code/docs/table-optimizer/STATE.md documents opt-0..opt-4 — opt-5 layers on top. Detailed plan lives in the agent session.

mkuchenbecker avatar May 20 '26 07:05 mkuchenbecker