This is an automated email from the ASF dual-hosted git repository. elek pushed a commit to branch HDDS-2280 in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
commit 4d7eb0eb17a84e3ec8c24d5248fc1195f6cffe09 Author: Shashikant Banerjee <shashik...@apache.org> AuthorDate: Thu Oct 10 17:50:24 2019 +0530 HDDS-2280. HddsUtils#CheckForException should not return null in case the ratis exception cause is not set. --- .../main/java/org/apache/hadoop/hdds/scm/client/HddsClientUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/client/HddsClientUtils.java b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/client/HddsClientUtils.java index d3bb31a..f0f565b 100644 --- a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/client/HddsClientUtils.java +++ b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/client/HddsClientUtils.java @@ -306,7 +306,7 @@ public final class HddsClientUtils { public static Throwable checkForException(Exception e) { Throwable t = e; - while (t != null) { + while (t != null && t.getCause() != null) { for (Class<? extends Exception> cls : getExceptionList()) { if (cls.isInstance(t)) { return t; --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-commits-h...@hadoop.apache.org