You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ri...@apache.org on 2022/11/10 06:51:21 UTC
[ozone] branch master updated: HDDS-7314. Recon graceful shutdown while closing RocksDB handle. (#3931)
This is an automated email from the ASF dual-hosted git repository.
ritesh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 3d3e6cb19a HDDS-7314. Recon graceful shutdown while closing RocksDB handle. (#3931)
3d3e6cb19a is described below
commit 3d3e6cb19aa8250ae94615ad128ea7df02b9ea09
Author: devmadhuu <de...@hotmail.com>
AuthorDate: Thu Nov 10 12:21:15 2022 +0530
HDDS-7314. Recon graceful shutdown while closing RocksDB handle. (#3931)
---
.../main/java/org/apache/hadoop/ozone/recon/ReconServer.java | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
index 55e5856f98..154e6a1db4 100644
--- a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
+++ b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
@@ -290,13 +290,18 @@ public class ReconServer extends GenericCli {
if (ozoneManagerServiceProvider != null) {
ozoneManagerServiceProvider.stop();
}
- if (reconDBProvider != null) {
- reconDBProvider.close();
- }
if (reconTaskStatusMetrics != null) {
reconTaskStatusMetrics.unregister();
}
isStarted = false;
+ if (reconDBProvider != null) {
+ try {
+ LOG.info("Closing Recon Container Key DB.");
+ reconDBProvider.close();
+ } catch (Exception ex) {
+ LOG.error("Recon Container Key DB close failed", ex);
+ }
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org