You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2023/02/22 08:09:52 UTC

[ozone] branch master updated: HDDS-7721. Make OM Ratis roles available in /prom endpoint (fix compile error)

This is an automated email from the ASF dual-hosted git repository.

adoroszlai 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 bcfebad032 HDDS-7721. Make OM Ratis roles available in /prom endpoint (fix compile error)
bcfebad032 is described below

commit bcfebad0327d656836c782f7f20bc0f0df3665c2
Author: Doroszlai, Attila <ad...@apache.org>
AuthorDate: Wed Feb 22 09:08:25 2023 +0100

    HDDS-7721. Make OM Ratis roles available in /prom endpoint (fix compile error)
---
 .../src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java    | 8 +-------
 1 file changed, 1 insertion(+), 7 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 dc8ae54c86..c154eea429 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
@@ -1897,13 +1897,7 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
         }
       }
     }
-    RaftPeer leader = null;
-    try {
-      leader = omRatisServer.getLeader();
-    } catch (IOException ex) {
-      LOG.error("IOException while getting the " +
-          "Ratis server leader.", ex);
-    }
+    RaftPeer leader = omRatisServer.getLeader();
     if (Objects.nonNull(leader)) {
       String leaderId = leader.getId().toString();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org