You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "lindongdong (JIRA)" <ji...@apache.org> on 2019/05/12 11:01:00 UTC

[jira] [Created] (HADOOP-16310) Log of a slow RPC request should contain the parameter of the request

lindongdong created HADOOP-16310:
------------------------------------

             Summary: Log of a slow RPC request should contain the parameter of the request
                 Key: HADOOP-16310
                 URL: https://issues.apache.org/jira/browse/HADOOP-16310
             Project: Hadoop Common
          Issue Type: Improvement
          Components: rpc-server
    Affects Versions: 3.1.2, 2.7.7, 3.1.1
            Reporter: lindongdong


 

Now, the log of  a slow RPC request just contains the *methodName*,*processingTime* and *client*. Code is here:
{code:java}
if ((rpcMetrics.getProcessingSampleCount() > minSampleSize) &&
    (processingTime > threeSigma)) {
  if(LOG.isWarnEnabled()) {
    String client = CurCall.get().toString();
    LOG.warn(
        "Slow RPC : " + methodName + " took " + processingTime +
            " milliseconds to process from client " + client);
  }
  rpcMetrics.incrSlowRpc();
}{code}
 

 

It is not enough to analyze why the RPC request is slow. 

The parameter of the request is a very important thing, and need to be added to the log.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org