hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yongjun Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7449) Add metrics to NFS gateway
Date Wed, 10 Dec 2014 22:07:12 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241834#comment-14241834

Yongjun Zhang commented on HDFS-7449:

HI [~brandonli],

Thanks for working on this, definitely a good thing to have!

I have a couple of comments here,
* suggest to create a method to wrap {{System.nanoTime() - startTime}} in RpcProgramNfs3,
and replaces the quite a few places with a call to this method.
* along the line that [~wheat9] commented, seems that {{RpcInfo.channel}}, {{ rpcCall.getXid()}}
are very common parameters across the board, possibly they could be wrapped in a {{HandlerCtx}}
class. And then the startTime can be included in this context. It would help avoiding changing
API next time when we need to add additional stuff to this context.  I wonder if this makes
sense to you.


> Add metrics to NFS gateway
> --------------------------
>                 Key: HDFS-7449
>                 URL: https://issues.apache.org/jira/browse/HDFS-7449
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: nfs
>    Affects Versions: 2.7.0
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>         Attachments: HDFS-7449.001.patch, HDFS-7449.002.patch, HDFS-7449.003.patch, HDFS-7449.004.patch,
HDFS-7449.005.patch, HDFS-7449.006.patch
> Add metrics to collect the NFSv3 handler operations, response time and etc.

This message was sent by Atlassian JIRA

View raw message