Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3760

primitiveCreate is a write, not a read

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: hdfs-client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

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

      A create (whether primitive or not) is a write operation, not a read operation.

        Attachments

        1. hdfs-3760.txt
          1 kB
          Andy Isaacson

          Activity

            People

            • Assignee:
              adi2 Andy Isaacson
              Reporter:
              adi2 Andy Isaacson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: