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

tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new f61f310c277 fix Precondition failure (#11710)
f61f310c277 is described below

commit f61f310c27775c395f04bc4b65f22d883c51bbc0
Author: William Song <[email protected]>
AuthorDate: Thu Dec 14 10:18:39 2023 +0800

    fix Precondition failure (#11710)
---
 .../src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
 
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
index 386f0c2797d..5371a0491bf 100644
--- 
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
+++ 
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
@@ -388,6 +388,9 @@ class RatisConsensus implements IConsensus {
                     // connect to the peer)
                     // We can still retry in case it's a temporary network 
partition.
                     return RaftClientReply.newBuilder()
+                        .setClientId(localFakeId)
+                        .setServerId(server.getId())
+                        .setGroupId(request.getRaftGroupId())
                         .setException(
                             new ReadIndexException(
                                 "internal GRPC connection error:", 
ioe.getCause()))

Reply via email to