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

Íñigo Goiri commented on HDFS-15075:
------------------------------------

[~hexiaoqiao], thought here?
I am referring to:
{code}
            long startProcessCommands = monotonicNow();
            commandProcessingThread.enqueue(resp.getCommands());
            long endProcessCommands = monotonicNow();
            if (endProcessCommands - startProcessCommands > 2000) {
              LOG.info("Took " + (endProcessCommands - startProcessCommands)
                  + "ms to process " + resp.getCommands().length
                  + " commands from NN");
            }
{code}

We may want to do this timing in CommandProcessingThread now and maybe track 
this times in a counter.

> Remove process command timing from BPServiceActor
> -------------------------------------------------
>
>                 Key: HDFS-15075
>                 URL: https://issues.apache.org/jira/browse/HDFS-15075
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Íñigo Goiri
>            Priority: Major
>
> HDFS-14997 moved the command processing into async.
> Right now, we are checking the time to add to a queue.
> We should remove this one and maybe move the timing within the thread.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to