Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16531

Log more detail for slow RPC

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.1.4, 3.2.2
    • Component/s: None
    • Labels:
      None

      Description

      Current implementation only log process time

      if ((rpcMetrics.getProcessingSampleCount() > minSampleSize) &&
          (processingTime > threeSigma)) {
        LOG.warn("Slow RPC : {} took {} {} to process from client {}",
            methodName, processingTime, RpcMetrics.TIMEUNIT, call);
        rpcMetrics.incrSlowRpc();
      }
      

      We need to log more details to help us locate the problem (eg. how long it take to request lock, holding lock, or do other things)

        Attachments

        1. HADOOP-16531.001.patch
          2 kB
          Chen Zhang

          Issue Links

            Activity

              People

              • Assignee:
                zhangchen Chen Zhang
                Reporter:
                zhangchen Chen Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: