szetszwo commented on code in PR #5376:
URL: https://github.com/apache/ozone/pull/5376#discussion_r1342990346
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java:
##########
@@ -267,8 +267,7 @@ public TransactionContext startTransaction(
@Override
public TransactionContext preAppendTransaction(TransactionContext trx)
throws IOException {
- OMRequest request = OMRatisHelper.convertByteStringToOMRequest(
- trx.getStateMachineLogEntry().getLogData());
+ final OMRequest request = (OMRequest) trx.getStateMachineContext();
OzoneManagerProtocolProtos.Type cmdType = request.getCmdType();
Review Comment:
The UGI is only for upgrade `Prepare`. Let's don't optimize it here.
--
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]