Skip to content

Commit

Permalink
HDDS-1441. Remove usage of getRetryFailureException. (swagle).
Browse files Browse the repository at this point in the history
  • Loading branch information
swagle committed May 21, 2019
1 parent 1b8eaee commit b82488f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,7 @@ public XceiverClientReply sendCommandAsync(
// to SCM as in this case, it is the raft client which is not
// able to connect to leader in the pipeline, though the
// pipeline can still be functional.
IOException exception = null;
if (reply.getNotLeaderException() != null) {
exception = reply.getNotLeaderException();
} else if (reply.getNotReplicatedException() != null) {
exception = reply.getNotReplicatedException();
} else if (reply.getStateMachineException() != null) {
exception = reply.getStateMachineException();
}
IOException exception = reply.getException();
Preconditions.checkNotNull(exception);
throw new CompletionException(exception);
}
Expand Down
2 changes: 1 addition & 1 deletion hadoop-hdds/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<hdds.version>0.5.0-SNAPSHOT</hdds.version>

<!-- Apache Ratis version -->
<ratis.version>0.4.0-fe2b15d-SNAPSHOT</ratis.version>
<ratis.version>0.4.0-SNAPSHOT</ratis.version>

<bouncycastle.version>1.60</bouncycastle.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,7 @@ private CompletableFuture<OMResponse> sendCommandAsync(OMRequest request) {
try {
Preconditions.checkNotNull(reply);
if (!reply.isSuccess()) {
IOException exception = null;
if (reply.getNotLeaderException() != null) {
exception = reply.getNotLeaderException();
} else if (reply.getNotReplicatedException() != null) {
exception = reply.getNotReplicatedException();
} else if (reply.getStateMachineException() != null) {
exception = reply.getStateMachineException();
}
IOException exception = reply.getException();
Preconditions.checkNotNull(exception);
throw new CompletionException(exception);
}
Expand Down
2 changes: 1 addition & 1 deletion hadoop-ozone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<hadoop.version>3.2.0</hadoop.version>
<hdds.version>0.5.0-SNAPSHOT</hdds.version>
<ozone.version>0.5.0-SNAPSHOT</ozone.version>
<ratis.version>0.4.0-fe2b15d-SNAPSHOT</ratis.version>
<ratis.version>0.4.0-SNAPSHOT</ratis.version>
<bouncycastle.version>1.60</bouncycastle.version>
<ozone.release>Crater Lake</ozone.release>
<declared.ozone.version>${ozone.version}</declared.ozone.version>
Expand Down

0 comments on commit b82488f

Please sign in to comment.