lasdf1234 opened a new issue, #15026:
URL: https://github.com/apache/gravitino/issues/15026

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Runtime and product docs accept TMS execution peers on maintenance policy 
content: `timeTrigger`, `commitTrigger`, `minIntervalMs`, `jobOptions`, 
`updaterOptions` (see `docs/table-maintenance-service/service.md` and related 
TMS docs).
   
   `docs/open-api/policies.yaml` does not declare these peers on 
`IcebergSnapshotExpirationContent` and sibling maintenance content schemas. 
Some schema text still says scheduling is configured separately, which is wrong 
for peers-on-content.
   
   Impact: OpenAPI clients / UI codegen omit peers. Operators who later call 
`updateContent` with only typed fields (documented full replace) can 
unintentionally clear `timeTrigger` and stop PolicyExpand scheduling. Server 
behavior matches the replace contract; the OpenAPI gap makes that easy to miss.
   
   ### Error message and/or stacktrace
   
   N/A (spec / docs mismatch). Example: POST/GET policy content returns 
`timeTrigger` and `jobOptions`, but the published OpenAPI content schema does 
not list them (`additionalProperties: false` on snapshot content).
   
   ### How to reproduce
   
   1. Create `system_iceberg_snapshot_expiration` with `content.timeTrigger` 
and typed fields such as `olderThanDays`.
   2. GET the policy — peers are present in JSON.
   3. Compare with `IcebergSnapshotExpirationContent` in 
`docs/open-api/policies.yaml` — peers are absent; description claims scheduling 
is separate.
   
   ### Additional context
   
   Related product docs already document the peers; this is an OpenAPI sync 
fix. Do not treat `updateContent` clearing omitted peers as a separate runtime 
bug — that is the documented full-replace semantics.


-- 
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