Hi, We found abnormal behaviors of GrpcLogAppender in a recent run, please refer to https://issues.apache.org/jira/browse/RATIS-1699 <https://issues.apache.org/jira/browse/RATIS-1699> for detailed error log and problem description.
We think that this problem roots in the data race in LeaderStateImpl. Its method stop() and restart(LogAppender) can be called concurrently, and under certain event sequence, will cause this weird situation. Maybe we can add synchronizations to coordinate these two methods. The event sequence and full logs are also provided in this issue. Please help me to confirm whether our analysis stands. Thanks in advance! Regards, William
