Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ StatusRuntimeException wrapException(Throwable e, REQUEST request) {

private void handleError(Throwable e, REQUEST request) {
GrpcUtil.warn(LOG, () -> getId() + ": Failed " + op + " request " + requestToString(request), e);
responseObserver.onError(wrapException(e, request));
if (isClosed.compareAndSet(false, true)) {
responseObserver.onError(wrapException(e, request));
}
}

private synchronized void handleReply(REPLY reply) {
Expand Down
2 changes: 1 addition & 1 deletion ratis-proto/src/main/proto/Grpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ service RaftServerProtocolService {
returns(stream ratis.common.InstallSnapshotReplyProto) {}

rpc readIndex(ratis.common.ReadIndexRequestProto)
returns(stream ratis.common.ReadIndexReplyProto) {}
returns(ratis.common.ReadIndexReplyProto) {}
}

service AdminProtocolService {
Expand Down