This is an automated email from the ASF dual-hosted git repository.
shashikant pushed a commit to branch HDDS-2280
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/HDDS-2280 by this push:
new 93eaf98 HDDS-2280. HddsUtils#CheckForException should not return null
in case the ratis exception cause is not set.
93eaf98 is described below
commit 93eaf982970796d8a310301a2a12c088a876260a
Author: Shashikant Banerjee <[email protected]>
AuthorDate: Fri Oct 18 17:56:04 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 | 3 +++
1 file changed, 3 insertions(+)
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 f0f565b..e1262b4 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
@@ -304,6 +304,9 @@ public final class HddsClientUtils {
return scmSecurityClient;
}
+ // This will return the underlying exception after unwrapping
+ // the exception to see if it matches with expected exception
+ // list otherwise will return the exception back.
public static Throwable checkForException(Exception e) {
Throwable t = e;
while (t != null && t.getCause() != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]