szetszwo commented on code in PR #5288:
URL: https://github.com/apache/ozone/pull/5288#discussion_r1538088002
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerProtocolServerSideTranslatorPB.java:
##########
@@ -243,6 +243,10 @@ private OMResponse submitRequestToRatis(OMRequest request)
private OMResponse submitReadRequestToOM(OMRequest request)
throws ServiceException {
+ // Read from leader or followers using linearizable read
+ if (omRatisServer.isLinearizableRead()) {
+ return handler.handleReadRequest(request);
+ }
Review Comment:
> ... currently OM does not send read request to OM Ratis server? ...
For non-ha, there is no Ratis server in OM. It probably is the reason.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]