lasdf1234 opened a new issue, #15102: URL: https://github.com/apache/gravitino/issues/15102
### Version main branch ### Describe what's wrong TMS `builtin-iceberg-maintenance-task` still uses a flat CLI bag (`--strategy`, `--older-than`, parallel `maintenance_types` / `policy_ids` / `action_ids`). That breaks when: 1. **Commit chain**: multiple maintenance types share one Spark jobConf; procedure params are first-wins merged and can overwrite each other. 2. **Snapshot-expiry batch**: schedule merge can combine tables (including across policies with different `older_than` / `retain_last`) into one cron row, but submit fans out to **one Spark job per table**. The intended model is **one Spark job for the whole batch**, with **per-table params**. ### Error message and/or stacktrace N/A (design / correctness bug; wrong params or wrong job cardinality rather than a stacktrace). ### How to reproduce 1. Attach two snapshot-expiry policies with different `older_than` / `retain_last` on tables in the same catalog. 2. Let cron merge them into one `batch:` row (capacity 10). 3. Observe either (a) submit creates N Spark jobs, or (b) if packed into one flat jobConf, only one set of expire params survives. Same class of issue on commit chain: compaction `strategy`/`options` and expire `retain_last`/`older_than` are flattened into one bag. ### Additional context Fix direction: unify cron + commit on a `tasks[]` jobConf (each task has `params` + `rules`), run snapshot batch as one Spark job over all claimed tasks, inject `action_id` per task at submit. -- 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]
