This is an automated email from the ASF dual-hosted git repository. licheng pushed a commit to branch HDDS-2823 in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/HDDS-2823 by this push: new e4a2a3d HDDS-4059: SCMStateMachine::applyTransaction() should not invoke TransactionContext.getClientRequest() (#1287) e4a2a3d is described below commit e4a2a3dadb2db0b6381db45db18f850b1e2d2719 Author: GlenGeng <gleng...@tencent.com> AuthorDate: Mon Aug 10 15:16:09 2020 +0800 HDDS-4059: SCMStateMachine::applyTransaction() should not invoke TransactionContext.getClientRequest() (#1287) --- .../src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java index b10dd54..ee26e58 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java @@ -54,7 +54,7 @@ public class SCMStateMachine extends BaseStateMachine { new CompletableFuture<>(); try { final SCMRatisRequest request = SCMRatisRequest.decode( - trx.getClientRequest().getMessage()); + Message.valueOf(trx.getStateMachineLogEntry().getLogData())); applyTransactionFuture.complete(process(request)); } catch (Exception ex) { applyTransactionFuture.completeExceptionally(ex); --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-commits-h...@hadoop.apache.org