lokeshj1703 commented on a change in pull request #1022: HDDS-1728. Add metrics
for leader's latency in ContainerStateMachine. Contributed by Mukul Kumar Singh.
URL: https://github.com/apache/hadoop/pull/1022#discussion_r299420584
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
##########
@@ -262,12 +264,19 @@ public long takeSnapshot() throws IOException {
@Override
public TransactionContext startTransaction(RaftClientRequest request)
throws IOException {
+ long startTime = Time.monotonicNowNanos();
final ContainerCommandRequestProto proto =
getContainerCommandRequestProto(request.getMessage().getContent());
Preconditions.checkArgument(request.getRaftGroupId().equals(gid));
try {
dispatcher.validateContainerCommand(proto);
} catch (IOException ioe) {
+ if (ioe instanceof ContainerNotOpenException) {
+ metrics.intNumContainerNotOpenVerifyFailures();
Review comment:
intNumContainerNotOpenVerifyFailures should be
in'c'NumContainerNotOpenVerifyFailures.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]