Skip to content

Commit 1d1b13c

Browse files
committed
[#6236] fix(core): fix possible resource leak in BaseCatalog
fix conflict.
1 parent a655913 commit 1d1b13c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/org/apache/gravitino/connector/BaseCatalog.java

+2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ public void initAuthorizationPluginInstance(IsolatedClassLoader classLoader) {
209209
}
210210
try (BaseAuthorization<?> authorization =
211211
BaseAuthorization.createAuthorization(classLoader, authorizationProvider)) {
212+
// Load the authorization plugin with the class loader of the catalog.
213+
// Because the JDBC authorization plugin may load JDBC driver using the class loader.
212214
authorizationPlugin =
213215
classLoader.withClassLoader(
214216
cl ->

0 commit comments

Comments
 (0)