This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 0fdd71b997 [#7644] improvement(core): classLoader set to null after
closing (#7668)
0fdd71b997 is described below
commit 0fdd71b99743b3da49dbc167f11c784cfa5dba31
Author: BIN <[email protected]>
AuthorDate: Fri Jul 11 14:50:03 2025 +0800
[#7644] improvement(core): classLoader set to null after closing (#7668)
### What changes were proposed in this pull request?
classLoader set to null after closing
### Why are the changes needed?
Fix: #7644
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
code review
Co-authored-by: senlizishi <[email protected]>
---
core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java
b/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java
index 256f9cadc5..f9974ab490 100644
--- a/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java
+++ b/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java
@@ -151,6 +151,7 @@ public class IsolatedClassLoader implements Closeable {
try {
if (classLoader != null) {
classLoader.close();
+ classLoader = null;
}
} catch (Exception e) {
LOG.warn("Failed to close classloader", e);