hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19450) Add log about average execution time for ScheduledChore
Date Thu, 07 Dec 2017 13:58:00 GMT

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

Ted Yu commented on HBASE-19450:
--------------------------------

{code}
212	    averageTime += (executionTime - averageTime) / (++count);
{code}
Shouldn't the average be computed by adding (executionTime - averageTime) to previous sum,
followed by division by ++count ?

> Add log about average execution time for ScheduledChore
> -------------------------------------------------------
>
>                 Key: HBASE-19450
>                 URL: https://issues.apache.org/jira/browse/HBASE-19450
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Reid Chan
>            Assignee: Reid Chan
>            Priority: Minor
>         Attachments: HBASE-19450.master.001.patch
>
>
> So far, there is no information about the exact execution time for a chore, we can provide
log information about it. It also brings other benefits, like discovering inefficient chores
which show rooms for improvement.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message