slfan1989 opened a new pull request, #13821:
URL: https://github.com/apache/iceberg/pull/13821

   ### Problem
   In `JdbcLockFactory#initializeLockTables()`, the `ResultSet` returned by 
`DatabaseMetaData#getTables(...)` is not closed explicitly. This can lead to 
resource leaks (open cursors/handles) on certain JDBC drivers and databases.
   
   ### Changes
   - Wrapped the `ResultSet` in a try-with-resources block to ensure it is 
always closed.
   - Minor code formatting adjustments for readability.


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to