You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2022/03/03 11:53:00 UTC

[jira] [Commented] (RATIS-1543) log from GrpcLogAppender is confusing

    [ https://issues.apache.org/jira/browse/RATIS-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500696#comment-17500696 ] 

Tsz-wo Sze commented on RATIS-1543:
-----------------------------------

[~ghuangups], thanks a lot for filing this JIRA.  Could you explain why the log message is the confusing?  Also, would you like to work on a pull request?

> 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)