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 1804e22 HDDS-6181. Change SCMHAInvocationHandler#invokeRatis()
logging to TRACE (#2992)
1804e22 is described below
commit 1804e225cbfd58e69ff5850f38c14968221054df
Author: Keyi Song <[email protected]>
AuthorDate: Wed Feb 2 18:40:54 2022 +0800
HDDS-6181. Change SCMHAInvocationHandler#invokeRatis() logging to TRACE
(#2992)
---
.../java/org/apache/hadoop/hdds/scm/ha/SCMHAInvocationHandler.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
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 b07ee54..8e10968 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 @@ public class SCMHAInvocationHandler implements
InvocationHandler {
*/
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 @@ public class SCMHAInvocationHandler implements
InvocationHandler {
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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]