You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2020/09/02 07:55:36 UTC
[GitHub] [incubator-ratis] runzhiwang commented on a change in pull request #185: RATIS-1042. Watch for commit calls are blocked for a long if no other message
runzhiwang commented on a change in pull request #185:
URL: https://github.com/apache/incubator-ratis/pull/185#discussion_r481853565
##########
File path: ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcLogAppender.java
##########
@@ -166,24 +169,26 @@ protected boolean shouldSendRequest() {
return appendLogRequestObserver == null || super.shouldSendRequest();
}
- /** @return true iff not received first response or queue is full. */
- private boolean shouldWait() {
+ /**
+ * @return true iff not received first response or queue is full.
+ */
+ private boolean haveTooManyPendingRequests() {
final int size = pendingRequests.logRequestsSize();
if (size == 0) {
return false;
}
return !firstResponseReceived || size >= maxPendingRequestsNum;
}
- private void appendLog() throws IOException {
+ private void appendLog(boolean excludeLogEntries) throws IOException {
Review comment:
Can we rename excludeLogEntries to heartbeat ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org