kerneltime commented on code in PR #5376:
URL: https://github.com/apache/ozone/pull/5376#discussion_r1341576497


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java:
##########
@@ -314,8 +313,7 @@ public TransactionContext 
preAppendTransaction(TransactionContext trx)
   @Override
   public CompletableFuture<Message> applyTransaction(TransactionContext trx) {
     try {
-      OMRequest request = OMRatisHelper.convertByteStringToOMRequest(
-          trx.getStateMachineLogEntry().getLogData());
+      final OMRequest request = (OMRequest) trx.getStateMachineContext();

Review Comment:
   Please add a line that this case depends on the deserialization done in 
`startTransaction`.



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