amaliujia commented on code in PR #1679:
URL: https://github.com/apache/ratis/pull/1679#discussion_r4476486549
##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcLogAppender.java:
##########
@@ -422,6 +425,13 @@ void onCompleted() {
}
}
+ @VisibleForTesting
+ int getAppendEntriesIndex() {
+ try (AutoCloseableLock readLock = lock.readLock(caller, LOG::trace)) {
Review Comment:
This is a testing only call, so the readlock has performance impact for
production.
--
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]