[
https://issues.apache.org/jira/browse/RATIS-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500957#comment-17500957
]
George Huang commented on RATIS-1543:
-------------------------------------
[~szetszwo] , thanks for looking into this. I was referring to following log
msg:
:
Leader has not got in touch with Follower
{*}b10a9cc8-27da-465f-88b6-b018f1f3e120@group-36C03A05E474->{*}922c1eba-d889-4ab5-a291-13a39d4cf47f(c-1,m0,n54227,
attendVote=true, lastRpcSendTime=0, lastRpcResponseTime=391556447)
See the highlighted text, looks like *b10a9cc8-27da-465f-88b6-b018f1f3e120 is
the follower, but actually it's the leader. Maybe we just remove this part and
saying something like:*
*Leader has not got in touch with Follower:
922c1eba-d889-4ab5-a291-13a39d4cf47f(c-1,m0,n54227, attendVote=true,
lastRpcSendTime=0, lastRpcResponseTime=391556447)...*
Does this make sense? Sure, I'd be happy to work on a PR.
> log from GrpcLogAppender is confusing
> -------------------------------------
>
> Key: RATIS-1543
> URL: https://issues.apache.org/jira/browse/RATIS-1543
> Project: Ratis
> Issue Type: Bug
> Components: gRPC
> Reporter: George Huang
> Priority: Major
>
> log is confusing, sample log:
> :
> |11:50:33.405
> PM|WARN|GrpcLogAppender|b10a9cc8-27da-465f-88b6-b018f1f3e120@group-36C03A05E474->922c1eba-d889-4ab5-a291-13a39d4cf47f-GrpcLogAppender:
> Leader has not got in touch with Follower
> b10a9cc8-27da-465f-88b6-b018f1f3e120@group-36C03A05E474->922c1eba-d889-4ab5-a291-13a39d4cf47f(c-1,m0,n54227,
> attendVote=true, lastRpcSendTime=0, lastRpcResponseTime=391556447) yet, just
> keep nextIndex unchanged and retry.|
> In this case, here is the leader and follower info:
> LEADER:b10a9cc8-27da-465f-88b6-b018f1f3e120
> FOLLOWER:922c1eba-d889-4ab5-a291-13a39d4cf47f
> Seems the corresponding code is at here:
> :
> if (onError && getFollower().getMatchIndex() == 0 && request == null) {
> LOG.warn("{}: Leader has not got in touch with Follower {} yet, " +
> "just keep nextIndex unchanged and retry.", this, getFollower());
> return;
> }
> from
> .../ratis/ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcLogAppender.java
--
This message was sent by Atlassian Jira
(v8.20.1#820001)