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

Jonathan Hsieh commented on HADOOP-7879:
----------------------------------------

trivial patch.
                
> DistributedFileSystem#createNonRecursive should also incrementWriteOps 
> statistics.
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-7879
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7879
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Jonathan Hsieh
>            Assignee: Jonathan Hsieh
>         Attachments: hadoop-7870.patch
>
>
> This method:
> {code}
>  public FSDataOutputStream createNonRecursive(Path f, FsPermission permission,
>       boolean overwrite,
>       int bufferSize, short replication, long blockSize, 
>       Progressable progress) throws IOException {
>     return new FSDataOutputStream
>         (dfs.create(getPathName(f), permission, 
>                     overwrite, false, replication, blockSize, progress, 
> bufferSize), 
>          statistics);
>   }
> {code}
> Needs a statistics.incrementWriteOps(1);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to