jianghuazhu commented on code in PR #1253:
URL: https://github.com/apache/ratis/pull/1253#discussion_r2076709824
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java:
##########
@@ -727,7 +727,7 @@ synchronized void changeToCandidate(boolean
forceStartLeaderElection) {
@Override
public String toString() {
- return role + " " + state + " " + lifeCycle.getCurrentState();
+ return role + "-> " + state + "->" + lifeCycle.getCurrentState();
Review Comment:
Thanks @szetszwo for the comment and review.
I have updated it.
New:
`
LEADER (RUNNING): s0@group-EB623959508B:t1, leader=s0, voted=s0,
raftlog=Memoized:s0@group-EB623959508B-SegmentedRaftLog:OPENED:c0:last(t:1,
i:0), conf=conf: {index: 0, cur=peers:[s0|localhost:15000]|listeners:[],
old=null}
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]