LuciferYang opened a new issue, #13449: URL: https://github.com/apache/gravitino/issues/13449
### Version main branch ### Describe what's wrong `JdbcPartitionStatisticStorage.close()` is a no-op, on the assumption that the factory manages the `DataSource` lifecycle. But the factory is a constructor-local in `StatisticManager` and is unreachable at shutdown: only the storage is retained and closed. So the DBCP2 connection pool and its sockets leak on every create/close cycle. ### How to reproduce Create and close a `StatisticManager` (which builds a `JdbcPartitionStatisticStorage` through the factory) repeatedly. The underlying `BasicDataSource` pool is never closed, leaking connections. -- 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]
