public void onNext(AppendEntriesRequestProto request) {
try {
final AppendEntriesReplyProto reply = dispatcher.appendEntries(request);
responseObserver.onNext(reply);
} catch (Throwable e) {
<BUG>LOG.info(dispatcher.getRaftServer().getId() +
" got exception when handling appendEntries " + request, e);

responseObserver.onError(e);
}</BUG>
}

public void onNext(AppendEntriesRequestProto request) {
try {
final AppendEntriesReplyProto reply = dispatcher.appendEntries(request);
responseObserver.onNext(reply);
} catch (Throwable e) {
LOG.info("{} got exception when handling appendEntries {}: {}",
dispatcher.getRaftServer().getId(), request.getServerRequest(), e);
responseObserver.onError(RaftGrpcUtil.wrapException(e));
}
}
