You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by bh...@apache.org on 2020/11/24 22:35:27 UTC
[ozone] branch master updated: HDDS-4501. Reload OM State fail
should terminate OM for any exceptions. (#1622)
This is an automated email from the ASF dual-hosted git repository.
bharat 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 4b69f08 HDDS-4501. Reload OM State fail should terminate OM for any exceptions. (#1622)
4b69f08 is described below
commit 4b69f08a8ba40c1bba19fc779f17244ebb48aade
Author: Bharat Viswanadham <bh...@apache.org>
AuthorDate: Tue Nov 24 14:35:11 2020 -0800
HDDS-4501. Reload OM State fail should terminate OM for any exceptions. (#1622)
---
.../src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 2d2c9f4..6229bef 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
@@ -3324,7 +3324,7 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
omRatisServer.getOmStateMachine().unpause(lastAppliedIndex, term);
LOG.info("Reloaded OM state with Term: {} and Index: {}", term,
lastAppliedIndex);
- } catch (IOException ex) {
+ } catch (Exception ex) {
String errorMsg = "Failed to reload OM state and instantiate services.";
exitManager.exitSystem(1, errorMsg, ex, LOG);
}
@@ -3334,7 +3334,7 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
if (dbBackup != null) {
FileUtils.deleteFully(dbBackup);
}
- } catch (IOException e) {
+ } catch (Exception e) {
LOG.error("Failed to delete the backup of the original DB {}", dbBackup);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org