errose28 commented on code in PR #6928:
URL: https://github.com/apache/ozone/pull/6928#discussion_r1688232384


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java:
##########
@@ -287,6 +301,11 @@ public TransactionContext 
preAppendTransaction(TransactionContext trx)
     final OMRequest request = (OMRequest) trx.getStateMachineContext();
     OzoneManagerProtocolProtos.Type cmdType = request.getCmdType();
 
+    if (readonlyMode.get()) {

Review Comment:
   I don't quite follow. Is this a performance improvement? I don't think we 
need to worry about that when every request in this state will fail. It would 
be simpler just to check in preAppend.



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