Details

    • Sub-task
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.7.0
    • None
    • namenode
    • None

    Description

      The commit of HDFS-7543 crossed paths with these comments:

      FSDirMkdirOp.java

      in #mkdirs, you removed the final String srcArg = src. This should be left in. Many IDEs will whine about making assignments to formal args and that's why it was put in in the first place.

      FSDirRenameOp.java

      #renameToInt, dstIIP (and resultingStat) could benefit from final's.

      FSDirXAttrOp.java

      I'm not sure why you've moved the call to getINodesInPath4Write and checkXAttrChangeAccess inside the writeLock.

      FSDirStatAndListing.java

      The javadoc for the @param src needs to be changed to reflect that it's an INodesInPath, not a String. Nit: it might be better to rename the INodesInPath arg from src to iip.

      #getFileInfo4DotSnapshot is now unused since you in-lined it into #getFileInfo.

      Attachments

        1. HDFS-7550.001.patch
          6 kB
          Charles Lamb

        Activity

          People

            Unassigned Unassigned
            clamb Charles Lamb
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: