You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2012/08/03 22:43:02 UTC

[jira] [Commented] (HDFS-3760) primitiveCreate is a write, not a read

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

Todd Lipcon commented on HDFS-3760:
-----------------------------------

+1 pending jenkins
                
> primitiveCreate is a write, not a read
> --------------------------------------
>
>                 Key: HDFS-3760
>                 URL: https://issues.apache.org/jira/browse/HDFS-3760
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>    Affects Versions: 2.0.0-alpha
>            Reporter: Andy Isaacson
>            Assignee: Andy Isaacson
>            Priority: Minor
>         Attachments: hdfs-3760.txt
>
>
> {code}
> DistributedFileSystem.java:
> 246   protected HdfsDataOutputStream primitiveCreate(Path f,
> 247     FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize,
> 248     short replication, long blockSize, Progressable progress,
> 249     int bytesPerChecksum) throws IOException {
> 250     statistics.incrementReadOps(1);
> {code}
> A {{create}} (whether primitive or not) is a write operation, not a read operation.

--
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