Details

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

      Description

      Minor BlockLocation cleanup. Remove dead imports, cleanup some incorrect comment and write a better javadoc.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        1d 19h 55m 1 Eli Collins 15/May/12 16:46
        Patch Available Patch Available Resolved Resolved
        1h 42m 1 Eli Collins 15/May/12 18:28
        Resolved Resolved Closed Closed
        8d 2h 47m 1 Arun C Murthy 23/May/12 21:16
        Allen Wittenauer made changes -
        Fix Version/s 2.0.2-alpha [ 12322473 ]
        Fix Version/s 2.0.0-alpha [ 12320352 ]
        Eli Collins made changes -
        Assignee Eli Collins [ eli2 ] Eli Collins [ eli ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #1081 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1081/)
        HADOOP-8398. Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806)

        Result = SUCCESS
        eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #1081 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1081/ ) HADOOP-8398 . Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #1045 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1045/)
        HADOOP-8398. Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806)

        Result = FAILURE
        eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #1045 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1045/ ) HADOOP-8398 . Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806) Result = FAILURE eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #2247 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2247/)
        HADOOP-8398. Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806)

        Result = SUCCESS
        eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #2247 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2247/ ) HADOOP-8398 . Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk-Commit #2321 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2321/)
        HADOOP-8398. Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806)

        Result = SUCCESS
        eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #2321 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2321/ ) HADOOP-8398 . Cleanup BlockLocation. Contributed by Eli Collins (Revision 1338806) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1338806 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
        Eli Collins made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Target Version/s 2.0.0 [ 12320352 ]
        Fix Version/s 2.0.0 [ 12320352 ]
        Resolution Fixed [ 1 ]
        Hide
        Eli Collins added a comment -

        I've committed this to trunk and merged to branch-2. Thanks John and Todd.

        Show
        Eli Collins added a comment - I've committed this to trunk and merged to branch-2. Thanks John and Todd.
        Eli Collins made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Eli Collins added a comment -

        Thanks guys, I'll update the patch with the following. Todd, you're +1?

        diff --git hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/f
        index 95149f4..cfe9ee8 100644
        --- hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Block
        +++ hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Block
        @@ -33,7 +33,7 @@ public class BlockLocation {
           private String[] topologyPaths; // Full path name in network topology
        -  private long offset;  // Offset of the of the block in the file
        +  private long offset;  // Offset of the block in the file
        
        Show
        Eli Collins added a comment - Thanks guys, I'll update the patch with the following. Todd, you're +1? diff --git hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/f index 95149f4..cfe9ee8 100644 --- hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Block +++ hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Block @@ -33,7 +33,7 @@ public class BlockLocation { private String [] topologyPaths; // Full path name in network topology - private long offset; // Offset of the of the block in the file + private long offset; // Offset of the block in the file
        Hide
        Todd Lipcon added a comment -

        One typo:

        + private long offset; // Offset of the of the block in the file

        Show
        Todd Lipcon added a comment - One typo: + private long offset; // Offset of the of the block in the file
        Hide
        John George added a comment -

        +1 seems pretty straightforward.

        Show
        John George added a comment - +1 seems pretty straightforward.
        Eli Collins made changes -
        Field Original Value New Value
        Attachment hadoop-8398.txt [ 12526693 ]
        Hide
        Eli Collins added a comment -

        Patch attached.

        Show
        Eli Collins added a comment - Patch attached.
        Eli Collins created issue -

          People

          • Assignee:
            Eli Collins
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development