goiri commented on a change in pull request #1800: HDFS-15100. RBF: Print
stacktrace when DFSRouter fails to fetch/parse JMX output from NameNode.
URL: https://github.com/apache/hadoop/pull/1800#discussion_r364876489
##########
File path:
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/FederationUtil.java
##########
@@ -98,13 +98,10 @@ public static JSONArray getJmx(String beanQuery, String
webAddress,
JSONObject json = new JSONObject(jmxOutput);
ret = json.getJSONArray("beans");
} catch (IOException e) {
- LOG.error("Cannot read JMX bean {} from server {}: {}",
- beanQuery, webAddress, e.getMessage());
- } catch (JSONException e) {
Review comment:
I would keep this one separately as we shouldn't need more details on this
if the JSON parsing fails.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]