hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tasan...@apache.org
Subject [hadoop] branch trunk updated: HDFS-15100. RBF: Print stacktrace when DFSRouter fails to fetch/parse JMX output from NameNode. (#1800)
Date Fri, 10 Jan 2020 04:17:18 GMT
This is an automated email from the ASF dual-hosted git repository.

tasanuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0315ef8  HDFS-15100. RBF: Print stacktrace when DFSRouter fails to fetch/parse JMX
output from NameNode. (#1800)
0315ef8 is described below

commit 0315ef844862ee863d646b562ba6d8889876ffa9
Author: Akira Ajisaka <aajisaka@apache.org>
AuthorDate: Fri Jan 10 13:16:57 2020 +0900

    HDFS-15100. RBF: Print stacktrace when DFSRouter fails to fetch/parse JMX output from
NameNode. (#1800)
---
 .../hadoop/hdfs/server/federation/router/FederationUtil.java       | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/FederationUtil.java
b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/FederationUtil.java
index d2eec04..9af9f9a 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/FederationUtil.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/FederationUtil.java
@@ -98,13 +98,14 @@ public final class FederationUtil {
       JSONObject json = new JSONObject(jmxOutput);
       ret = json.getJSONArray("beans");
     } catch (IOException e) {
-      LOG.error("Cannot read JMX bean {} from server {}: {}",
-          beanQuery, webAddress, e.getMessage());
+      LOG.error("Cannot read JMX bean {} from server {}",
+          beanQuery, webAddress, e);
     } catch (JSONException e) {
+      // We shouldn't need more details if the JSON parsing fails.
       LOG.error("Cannot parse JMX output for {} from server {}: {}",
           beanQuery, webAddress, e.getMessage());
     } catch (Exception e) {
-      LOG.error("Cannot parse JMX output for {} from server {}: {}",
+      LOG.error("Cannot parse JMX output for {} from server {}",
           beanQuery, webAddress, e);
     } finally {
       if (reader != null) {


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


Mime
View raw message