szetszwo commented on PR #643:
URL: https://github.com/apache/ratis/pull/643#issuecomment-1122066331

   If firstAvailable is 0, let's return null?
   ```
   +++ 
b/ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcLogAppender.java
   @@ -588,7 +588,7 @@ public class GrpcLogAppender extends LogAppenderBase {
          // be notified to install a snapshot. Every follower should try to 
install at least one snapshot during
          // bootstrapping, if available.
          LOG.debug("{}: follower is bootstrapping, notify to install snapshot 
to {}.", this, firstAvailable);
   -      return firstAvailable;
   +      return firstAvailable.getIndex() > RaftLog.LEAST_VALID_LOG_INDEX? 
firstAvailable: 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]

Reply via email to