From 0c431427b15fe30d61abb517c49773c8606715f6 Mon Sep 17 00:00:00 2001 From: Ivan Andika Date: Sat, 16 Nov 2024 13:49:01 +0800 Subject: [PATCH] HDDS-11644. Close OMLayoutVersionManager --- .../main/java/org/apache/hadoop/ozone/om/OzoneManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java index 2bb8c915b3c..15b2afd0c04 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java @@ -2329,6 +2329,10 @@ public boolean stop() { if (bucketUtilizationMetrics != null) { bucketUtilizationMetrics.unRegister(); } + + if (versionManager != null) { + versionManager.close(); + } return true; } catch (Exception e) { LOG.error("OzoneManager stop failed.", e);