mchades opened a new pull request, #12553:
URL: https://github.com/apache/gravitino/pull/12553
### What changes were proposed in this pull request?
- Add an API to test an existing catalog using its stored configuration.
- Extend the catalog SPI while preserving compatibility through a default
implementation.
- Support existing-catalog probes for JDBC, Hive, Iceberg, Paimon, Hudi,
Glue, Kafka, and Fileset catalogs.
- Test all Fileset catalog-level locations through HCFS and support dynamic
credential vending.
- Add Java and Python client APIs and update the OpenAPI specification.
- Return unsupported errors for Model and Generic catalogs.
### Why are the changes needed?
The existing connection test only accepts catalog properties before
creation. Users also need to verify an existing catalog after credentials,
network configuration, or external services change.
Fix: #12552
### Does this PR introduce _any_ user-facing change?
Yes.
A new endpoint is available:
`POST /api/metalakes/{metalake}/catalogs/{catalog}/testConnection`
Java and Python clients expose the corresponding `testConnection` and
`test_connection` methods.
### How was this patch tested?
- Added and ran Core and REST API unit tests.
- Added and ran Fileset location, placeholder, multi-location, timeout, and
credential-vending tests.
- Added and ran Model and Generic catalog tests.
- Added and ran Java and Python client tests.
- Ran Spotless and OpenAPI validation.
Docker integration tests were not run.
--
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]