You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by sh...@apache.org on 2020/04/13 09:46:27 UTC

[incubator-ratis] branch master updated: GrpcClientProtocolClient uses NotLeaderException event for LeaderNotReadyException. Contributed by Lokesh Jain.

This is an automated email from the ASF dual-hosted git repository.

shashikant pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new cf8c27e  GrpcClientProtocolClient uses NotLeaderException event for LeaderNotReadyException. Contributed by Lokesh Jain.
cf8c27e is described below

commit cf8c27e0504800973c6def20da7a9f717ee51879
Author: Shashikant Banerjee <sh...@apache.org>
AuthorDate: Mon Apr 13 15:16:06 2020 +0530

    GrpcClientProtocolClient uses NotLeaderException event for LeaderNotReadyException. Contributed by Lokesh Jain.
---
 .../java/org/apache/ratis/grpc/client/GrpcClientProtocolClient.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ratis-grpc/src/main/java/org/apache/ratis/grpc/client/GrpcClientProtocolClient.java b/ratis-grpc/src/main/java/org/apache/ratis/grpc/client/GrpcClientProtocolClient.java
index a65f0b7..be9c7b2 100644
--- a/ratis-grpc/src/main/java/org/apache/ratis/grpc/client/GrpcClientProtocolClient.java
+++ b/ratis-grpc/src/main/java/org/apache/ratis/grpc/client/GrpcClientProtocolClient.java
@@ -280,7 +280,7 @@ public class GrpcClientProtocolClient implements Closeable {
           }
           final LeaderNotReadyException lnre = reply.getLeaderNotReadyException();
           if (lnre != null) {
-            completeReplyExceptionally(lnre, NotLeaderException.class.getName());
+            completeReplyExceptionally(lnre, LeaderNotReadyException.class.getName());
             return;
           }
           handleReplyFuture(callId, f -> f.complete(reply));