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


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerRatisServerConfig.java:
##########
@@ -52,6 +52,27 @@ public class OzoneManagerRatisServerConfig {
   )
   private long retryCacheTimeout = Duration.ofSeconds(300).toMillis();
 
+  @Config(key = "read.option",
+      defaultValue = "DEFAULT",
+      type = ConfigType.STRING,
+      tags = {OZONE, OM, RATIS, PERFORMANCE},
+      description = "Select the Ratis server read option." +
+          " Possible values are: " +
+          "   DEFAULT      - Directly query statemachine (non-linearizable). " 
+
+          "     Only the leader can serve read requests. " +

Review Comment:
   Currently this configuration is using directly from Ratis. If changed, OM 
Ratis Server won't start normally.
   
   The thing is the localLease is not a 1:1 mapping, if locallease condition 
check doesn't fit, it will fallback to ReadIndex which is linearizable.



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