symious commented on code in PR #9320:
URL: https://github.com/apache/ozone/pull/9320#discussion_r2549052162


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerProtocolServerSideTranslatorPB.java:
##########
@@ -185,7 +190,12 @@ public OMRequest getLastRequestToSubmit() {
   private OMResponse submitReadRequestToOM(OMRequest request)
       throws ServiceException {
     // Read from leader or followers using linearizable read
-    if (omRatisServer.isLinearizableRead()) {
+    if (ozoneManager.isFollowerReadLocalLeaseEnabled() &&
+        allowFollowerReadLocalLease(omRatisServer.getServerDivision(),

Review Comment:
   If the follower is up-to-date, the info should be fresh, if not, the check 
should fail and request should go to ReadIndex or leader.



-- 
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]

Reply via email to