The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-9555-02c8e120cf46b77c4988ab977cef35bf1608adcc
 has succeeded.
Run started by GitHub user mengw15 (triggered by mengw15).

Head commit for run:
a038371b620f67e9aeb2c067f393f46169ac3331 / Meng Wang <[email protected]>
feat(storage): make the per-warehouse catalog cache bounds configurable (#9555)

### What changes were proposed in this PR?

The JVM services cache Iceberg catalog clients one per warehouse,
bounded at 64 entries and a 60-minute idle expiry (#7539). Both bounds
were hardcoded; they now come from `storage.conf`, overridable with
`STORAGE_ICEBERG_CATALOG_CACHE_MAX_SIZE` and
`STORAGE_ICEBERG_CATALOG_CACHE_IDLE_EXPIRY_MINUTES`. The defaults are
unchanged, and a value below 1 is refused at startup. The Python worker
keeps its own catalogs and does not read these.

A computing unit touches the few warehouses of the executions it runs,
but result-service reads every user's results, so its deployment may
need a larger bound. Past the bound nothing fails: the least recently
used client is dropped and rebuilt on its next use, at the cost of a
round trip to Lakekeeper.

### Any related issues, documentation, discussions?

Part of #8995. Follows #7539, which bounded the cache.

### How was this PR tested?

A new `StorageConfigSpec` case pins both defaults, so a renamed key or a
changed default fails it; raising a default turned it red. Another
refuses 0 and -1 with a message naming the variable.
`IcebergCatalogInstanceSpec` passes unchanged, and scalafmt and scalafix
pass for Config and WorkflowCore.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

Report URL: https://github.com/apache/texera/actions/runs/45253632842

With regards,
GitHub Actions via GitBox

Reply via email to