hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4444) Add space between total transaction time and number of transactions in FSEditLog#printStatistics
Date Sat, 02 Feb 2013 12:42:24 GMT

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

Hudson commented on HDFS-4444:
------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #513 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/513/])
    HDFS-4444. Add space between total transaction time and number of transactions in FSEditLog#printStatistics.
(Stephen Chu via tgraves) (Revision 1441652)

     Result = SUCCESS
tgraves : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1441652
Files : 
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java

                
> Add space between total transaction time and number of transactions in FSEditLog#printStatistics
> ------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-4444
>                 URL: https://issues.apache.org/jira/browse/HDFS-4444
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha, 3.0.0
>            Reporter: Stephen Chu
>            Assignee: Stephen Chu
>            Priority: Trivial
>             Fix For: 1.2.0, 2.0.3-alpha, 0.23.7
>
>         Attachments: HDFS-4444.patch.001, HDFS-4444.patch.branch-1
>
>
> Currently, when we log statistics, we see something like
> {code}
> 13/01/25 23:16:59 INFO namenode.FSNamesystem: Number of transactions: 0 Total time for
transactions(ms): 0Number of transactions batched in Syncs: 0 Number of syncs: 0 SyncTimes(ms):
0
> {code}
> Notice how the value for total transactions time and "Number of transactions batched
in Syncs" needs a space to separate them.
> FSEditLog#printStatistics:
> {code}
>   private void printStatistics(boolean force) {
>     long now = now();
>     if (lastPrintTime + 60000 > now && !force) {
>       return;
>     }
>     lastPrintTime = now;
>     StringBuilder buf = new StringBuilder();
>     buf.append("Number of transactions: ");
>     buf.append(numTransactions);
>     buf.append(" Total time for transactions(ms): ");
>     buf.append(totalTimeTransactions);
>     buf.append("Number of transactions batched in Syncs: ");
>     buf.append(numTransactionsBatchedInSync);
>     buf.append(" Number of syncs: ");
>     buf.append(editLogStream.getNumSync());
>     buf.append(" SyncTimes(ms): ");
>     buf.append(journalSet.getSyncTimes());
>     LOG.info(buf);
>   }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message