lasdf1234 opened a new issue, #15099: URL: https://github.com/apache/gravitino/issues/15099
### What would you like to be improved? 1. **Flat TMS maintenance jobConf** (`maintenance_types` / `policy_ids` / scattered procedure flags) loses distinct procedure params when commit chains or cross-policy expire batches share one job. Snapshot-expiry batch also fans out to one Spark job per table instead of one job over the claimed batch. 2. **Manifest rewrite trigger** uses a dual count/size rule (`manifest_count_critical` / `manifest_count_warning` / `avg_manifest_size_threshold_bytes`) that does not match Iceberg. Iceberg commit-time merge is driven by `commit.manifest.min-count-to-merge` (default 100). 3. **`MaintenanceActionManager`** only exposes `canStart(tableId, policyId, minIntervalMs, nowMs)`, which always applies cooldown. Callers that already decided to schedule (or only need soft-slot availability) need a way to check whether the slot is free without evaluating `minIntervalMs`. ### How should we improve? 1. Replace flat jobConf 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 (per-task `older_than` / `retain_last` preserved). Soft-slot `action_id` is applied on the schedule spec before jobConf serialization. 2. Replace the dual count/size trigger with a single `manifest_count_threshold` (default 100), aligned with Iceberg `commit.manifest.min-count-to-merge`. Update API/DTO/OpenAPI/docs/Python client accordingly. 3. Add `MaintenanceActionManager#canStart(tableId, policyId)` that returns whether the soft slot is free and does not consult `minIntervalMs` cooldown. Keep the existing four-argument overload for scheduler paths that still enforce cooldown. -- 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]
