lasdf1234 opened a new pull request, #15103:
URL: https://github.com/apache/gravitino/pull/15103

   ### What changes were proposed in this pull request?
   
   - Replace flat TMS maintenance jobConf (`maintenance_types` / `policy_ids` / 
scattered procedure flags) with a unified `tasks[]` payload: each task carries 
`params` (CALL) and `rules` (gate, including `trigger-expr`).
   - Cron and commit both build/submit via `jobConfForSpec`.
   - Snapshot-expiry batch: claim all soft slots, then **one** `submitAndBind` 
/ one Spark job over all tables (per-task `older_than` / `retain_last` 
preserved).
   - `IcebergMaintenanceJob` template stays at **v1**; `MaintenanceJobManager` 
injects `action_id` onto each task.
   
   ### Why are the changes needed?
   
   Flat first-wins merging loses distinct procedure params when commit chains 
or cross-policy expire batches share one jobConf. Batch submit also incorrectly 
fanned out to one Spark job per table.
   
   Fixes #15102
   
   ### Does this PR introduce _any_ user-facing change?
   
   - Yes: `builtin-iceberg-maintenance-task` jobConf now requires `tasks` JSON. 
Automated TMS submit paths are updated; direct callers of the old flat keys 
need to migrate. Template version remains `v1`.
   
   ### How was this patch tested?
   
   - `./gradlew :maintenance:jobs:test` focused tests 
(`TestIcebergMaintenanceJob`, `TestMaintenanceTriggerGate`, 
`TestBuiltInJobTemplateProvider`)
   - `./gradlew :plugins:maintenance:test` focused tests 
(`TestMaintenanceJobSpecFactory`, commit/cron submit pipeline + spec factory 
tests)
   
   
   Made with [Cursor](https://cursor.com)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to