This is an automated email from the ASF dual-hosted git repository.

jerryshao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 41f24c0de0 [Cherry-pick to branch-2.0] [#15026] fix(docs): Declare TMS 
execution peers on OpenAPI maintenance content (#15028) (#15063)
41f24c0de0 is described below

commit 41f24c0de033a38a8b0d4a4d2f4cac91faa8551d
Author: Jerry Shao <[email protected]>
AuthorDate: Wed Nov 18 17:58:08 2026 +0800

    [Cherry-pick to branch-2.0] [#15026] fix(docs): Declare TMS execution peers 
on OpenAPI maintenance content (#15028) (#15063)
    
    **Cherry-pick Information:**
    - Original commit: 1ee1273394eb97650173f39e322c8074bf84e68d
    - Target branch: `branch-2.0`
    - Status: ✅ Clean cherry-pick (no conflicts)
    - Fork CI: runs in `jerryshao/gravitino`; re-run it there or push to
    this PR branch
    
    Co-authored-by: MaSai <[email protected]>
    Co-authored-by: Cursor <[email protected]>
---
 docs/open-api/policies.yaml | 80 +++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 73 insertions(+), 7 deletions(-)

diff --git a/docs/open-api/policies.yaml b/docs/open-api/policies.yaml
index 995a53d5c9..8f40224552 100644
--- a/docs/open-api/policies.yaml
+++ b/docs/open-api/policies.yaml
@@ -303,6 +303,48 @@ paths:
 
 
 components:
+  # YAML-only merge source for TMS execution peers. Not a public schema: each 
maintenance
+  # content object inlines these properties so additionalProperties: false 
still accepts them.
+  x-gravitino-policy-execution-peer-properties: 
&policy-execution-peer-properties
+    timeTrigger:
+      type: string
+      nullable: true
+      description: >
+        Optional six-field Quartz cron (`second minute hour day-of-month month 
day-of-week`).
+        When due, PolicyExpand schedules cron maintenance for matching tables.
+    commitTrigger:
+      type: boolean
+      nullable: true
+      description: >
+        When true, a successful Iceberg REST table update can enqueue 
commit-triggered
+        maintenance.
+    minIntervalMs:
+      type: integer
+      format: int64
+      minimum: 0
+      nullable: true
+      description: >
+        Optional cooldown in milliseconds after a finished run of this policy 
on a table.
+        When omitted, the server uses the per-type default.
+    jobOptions:
+      type: object
+      nullable: true
+      additionalProperties:
+        type: string
+        minLength: 1
+        pattern: '[\s\S]*\S[\s\S]*'
+      description: Optional Spark/job option bag. Keys and values must be 
non-blank.
+    updaterOptions:
+      type: object
+      nullable: true
+      additionalProperties:
+        type: string
+        minLength: 1
+        pattern: '[\s\S]*\S[\s\S]*'
+      description: >
+        Optional updater option bag (for example `gravitino_uri`). Keys and 
values must be
+        non-blank.
+
   parameters:
     details:
       name: details
@@ -358,8 +400,13 @@ components:
 
     IcebergCompactionContent:
       type: object
-      description: Built-in Iceberg compaction thresholds, scoring weights, 
and rewrite options.
+      description: >
+        Built-in Iceberg compaction thresholds, scoring weights, rewrite 
options, and TMS
+        execution peers such as `timeTrigger` and `jobOptions`. On 
updateContent, newContent
+        fully replaces the previous content; omitting a peer clears it.
+      additionalProperties: false
       properties:
+        <<: *policy-execution-peer-properties
         minDataFileMse:
           type: integer
           format: int64
@@ -427,8 +474,21 @@ components:
 
     IcebergOrphanFileRemovalContent:
       type: object
-      description: Table-level orphan cleanup options. Scheduling is 
configured separately.
+      description: >
+        Table-level orphan cleanup options with TMS execution peers such as 
`timeTrigger`.
+        `commitTrigger=true` is rejected for this policy type. On 
updateContent, newContent
+        fully replaces the previous content; omitting a peer clears it.
+      additionalProperties: false
       properties:
+        <<: *policy-execution-peer-properties
+        # Explicit key wins over the YAML merge: orphan cleanup never accepts 
commitTrigger=true.
+        # Put null in enum (same as domains.yaml parent): OAS 3.0 nullable 
does not extend enum.
+        commitTrigger:
+          type: boolean
+          nullable: true
+          enum: [false, null]
+          description: >
+            Must be false, null, or omitted. Orphan file removal rejects 
commit-triggered runs.
         olderThanDays:
           type: integer
           format: int64
@@ -470,9 +530,13 @@ components:
 
     IcebergRewriteManifestsContent:
       type: object
-      description: Thresholds for one resolved Iceberg partition spec. 
Supports catalog, schema, and table policies.
+      description: >
+        Thresholds for one resolved Iceberg partition spec. Supports catalog, 
schema, and table
+        policies, plus TMS execution peers such as `timeTrigger` and 
`jobOptions`. On
+        updateContent, newContent fully replaces the previous content; 
omitting a peer clears it.
       additionalProperties: false
       properties:
+        <<: *policy-execution-peer-properties
         manifest_count_critical:
           type: integer
           format: int64
@@ -528,12 +592,14 @@ components:
     IcebergSnapshotExpirationContent:
       type: object
       description: >
-        Snapshot expiration options for system_iceberg_snapshot_expiration. 
Scheduling is
-        configured separately. On updateContent, newContent fully replaces the 
previous content;
-        omitted fields use these defaults rather than merging with stored 
values. Integer fields
-        must be JSON integers (not strings or floats); streamResults must be a 
JSON boolean.
+        Snapshot expiration options for system_iceberg_snapshot_expiration, 
including TMS
+        execution peers such as `timeTrigger` and `jobOptions`. On 
updateContent, newContent
+        fully replaces the previous content; omitted fields use these defaults 
rather than
+        merging with stored values (omitting a peer clears it). Integer fields 
must be JSON
+        integers (not strings or floats); streamResults must be a JSON boolean.
       additionalProperties: false
       properties:
+        <<: *policy-execution-peer-properties
         olderThanDays:
           type: integer
           format: int64

Reply via email to