This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 7f7a072b8bb branch-3.0: [fix](catalog) fix iceberg catalog NPE issue
#57696 (#57854)
7f7a072b8bb is described below
commit 7f7a072b8bbb8fedc17bd9c95280bd742ab706f1
Author: lw112 <[email protected]>
AuthorDate: Tue Nov 11 22:00:23 2025 +0800
branch-3.0: [fix](catalog) fix iceberg catalog NPE issue #57696 (#57854)
Cherry-picked from #57696
---
.../java/org/apache/doris/datasource/hive/HMSExternalCatalog.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HMSExternalCatalog.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HMSExternalCatalog.java
index e42124377ed..c167a4cf6d6 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HMSExternalCatalog.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HMSExternalCatalog.java
@@ -206,9 +206,6 @@ public class HMSExternalCatalog extends ExternalCatalog {
@Override
public synchronized void resetToUninitialized(boolean invalidCache) {
super.resetToUninitialized(invalidCache);
- if (metadataOps != null) {
- metadataOps.close();
- }
}
@Override
@@ -217,8 +214,13 @@ public class HMSExternalCatalog extends ExternalCatalog {
if (null != fileSystemExecutor) {
fileSystemExecutor.shutdown();
}
+ if (null != metadataOps) {
+ metadataOps.close();
+ metadataOps = null;
+ }
if (null != icebergMetadataOps) {
icebergMetadataOps.close();
+ icebergMetadataOps = null;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]