Anurag-S1ngh opened a new pull request, #19249: URL: https://github.com/apache/iceberg/pull/19249
## Summary - `RESTCatalogServer.stop()` stopped the HTTP server but left the backend catalog open, leaking JDBC connections and FileIO resources for the life of the test JVM. - Keep the catalog context created in `start` and close the backend catalog on stop when it is `Closeable`. ## Changes - `RESTCatalogServer`: store the `CatalogContext`, close the backend catalog in `stop()`, and expose the context to tests. - Add `TestRESTCatalogServer`, verifying that the backend JDBC catalog is closed after the server stops. ## Testing - `./gradlew :iceberg-open-api:test` passes. - The new test fails when the close call is removed. Closes #17232 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
