Skip to content

Commit

Permalink
[apache#6236] fix(core): fix possible resource leak in BaseCatalog
Browse files Browse the repository at this point in the history
fix conflict.
  • Loading branch information
Abyss-lord committed Jan 15, 2025
1 parent a655913 commit 1d1b13c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ public void initAuthorizationPluginInstance(IsolatedClassLoader classLoader) {
}
try (BaseAuthorization<?> authorization =
BaseAuthorization.createAuthorization(classLoader, authorizationProvider)) {
// Load the authorization plugin with the class loader of the catalog.
// Because the JDBC authorization plugin may load JDBC driver using the class loader.
authorizationPlugin =
classLoader.withClassLoader(
cl ->
Expand Down

0 comments on commit 1d1b13c

Please sign in to comment.