Hadoop Common
  1. Hadoop Common
  2. HADOOP-7879

DistributedFileSystem#createNonRecursive should also incrementWriteOps statistics.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This method:

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

      Needs a statistics.incrementWriteOps(1);

      1. hadoop-7870.patch
        0.7 kB
        Jonathan Hsieh

        Activity

        Jonathan Hsieh created issue -
        Jonathan Hsieh made changes -
        Field Original Value New Value
        Description 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);
        Jonathan Hsieh made changes -
        Attachment hadoop-7870.patch [ 12505953 ]
        Jonathan Hsieh made changes -
        Assignee Jonathan Hsieh [ jmhsieh ]
        Jonathan Hsieh made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Jonathan Hsieh made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Todd Lipcon made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 1.1.0 [ 12316501 ]
        Resolution Fixed [ 1 ]
        Todd Lipcon made changes -
        Priority Major [ 3 ] Trivial [ 5 ]
        Matt Foley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jonathan Hsieh
            Reporter:
            Jonathan Hsieh
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development