devmadhuu commented on code in PR #3931:
URL: https://github.com/apache/ozone/pull/3931#discussion_r1013763521


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java:
##########
@@ -287,12 +287,17 @@ public void stop() throws Exception {
       if (ozoneManagerServiceProvider != null) {
         ozoneManagerServiceProvider.stop();
       }
-      if (reconDBProvider != null) {
-        reconDBProvider.close();
-      }
       if (reconTaskStatusMetrics != null) {
         reconTaskStatusMetrics.unregister();
       }
+      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);
+        }
+      }
       isStarted = false;

Review Comment:
   Ok thanks @kerneltime for reviewing the PR. We can do. However this marking 
service as stop is being used by above services which are already stopped 
before closing recon container DB. But no harm in moving to very end. Please 
re-review. Changes pushed as per suggestion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to