diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMHAInvocationHandler.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMHAInvocationHandler.java index b07ee54147ba..8e109683ba3d 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMHAInvocationHandler.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMHAInvocationHandler.java @@ -88,7 +88,8 @@ private Object invokeLocal(Method method, Object[] args) */ private Object invokeRatis(Method method, Object[] args) throws Exception { - long startTime = Time.monotonicNowNanos(); + LOG.trace("Invoking method {} on target {}", method, ratisHandler); + // TODO: Add metric here to track time taken by Ratis Preconditions.checkNotNull(ratisHandler); SCMRatisRequest scmRatisRequest = SCMRatisRequest.of(requestType, method.getName(), method.getParameterTypes(), args); @@ -110,8 +111,6 @@ private Object invokeRatis(Method method, Object[] args) response = ratisHandler.submitRequest( scmRatisRequest); } - LOG.info("Invoking method {} on target {}, cost {}us", - method, ratisHandler, (Time.monotonicNowNanos() - startTime) / 1000.0); if (response.isSuccess()) { return response.getResult();