This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new be1180f4b1 HDDS-6786. Bad value for metric NumBytesCommittedCount in
testContainerStateMachineMetrics (#3443)
be1180f4b1 is described below
commit be1180f4b11e7ffc35bc228443744ab49eb9200d
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon May 23 10:08:31 2022 +0200
HDDS-6786. Bad value for metric NumBytesCommittedCount in
testContainerStateMachineMetrics (#3443)
---
.../container/common/transport/server/ratis/ContainerStateMachine.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
index 494cfe1b13..02c0a8d2b1 100644
---
a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
+++
b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
@@ -853,11 +853,11 @@ public class ContainerStateMachine extends
BaseStateMachine {
+ "{} Container Result: {}", gid, r.getCmdType(), index,
r.getMessage(), r.getResult());
}
- applyTransactionFuture.complete(r::toByteString);
if (cmdType == Type.WriteChunk || cmdType == Type.PutSmallFile) {
metrics.incNumBytesCommittedCount(
requestProto.getWriteChunk().getChunkData().getLen());
}
+ applyTransactionFuture.complete(r::toByteString);
// add the entry to the applyTransactionCompletionMap only if the
// stateMachine is healthy i.e, there has been no applyTransaction
// failures before.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]