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 2011/07/07 02:37:16 UTC

[jira] [Created] (HDFS-2133) 1073: address remaining TODOs and pre-merge cleanup

1073: address remaining TODOs and pre-merge cleanup
---------------------------------------------------

                 Key: HDFS-2133
                 URL: https://issues.apache.org/jira/browse/HDFS-2133
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Todd Lipcon
            Assignee: Todd Lipcon




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2133) 1073: address remaining TODOs and pre-merge cleanup

Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064887#comment-13064887 ] 

Eli Collins commented on HDFS-2133:
-----------------------------------

+1  looks good

> 1073: address remaining TODOs and pre-merge cleanup
> ---------------------------------------------------
>
>                 Key: HDFS-2133
>                 URL: https://issues.apache.org/jira/browse/HDFS-2133
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Edit log branch (HDFS-1073)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: Edit log branch (HDFS-1073)
>
>         Attachments: hdfs-2133.txt
>
>
> There are a few TODOs still in the code and a bit of cleanup to be done before merging HDFS-1073. This JIRA is for this misc cleanup.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2133) 1073: address remaining TODOs and pre-merge cleanup

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated HDFS-2133:
------------------------------

    Attachment: hdfs-2133.txt

Patch addresses the following:



- removes an extra "setReadyToFlush/flush" call in EditLogFileOutputStream.close. This snuck in when we did some refactoring, but seems unnecessary, since we always flush before closing a stream anyway. Tests seem to be passing even when I remove this (and the next bit of that same function already verifies that there isn't any unflushed data in the buffer)

{code:title=FSImage.java}
-    // TODO need to discuss what the correct logic is for determing which
-    // storage directory to read properties from
     sdForProperties.read();
{code}
This TODO is invalid -- when inspecting the dirs at startup, we already call {{read()}} for each directory. That means that we've verified that they all contain the same data. Since VERSION files are now just namespace info, and nothing related to checkpoint times or versions, it doesn't matter which one we read() from here.

{code:title=FSImage.java}
-      storage.writeAll(); // TODO is this a good spot for this?
-      
+      storage.writeAll();
{code}
Yes, I think it's a good spot :) Eli had commented that he agreed in an earlier code review, but I hadn't removed it at that point. This {{writeAll}} call is necessary when adding new directories to a NN, for example.

- various changes to remove checkpointTxId from NameNodeRegistration and CheckpointCommand. A checkpoint txid is no longer relevant when deciding whether to allow a checkpoint to take place, since we can distinguish between different checkpoints at different txids.

- various javadoc additions where things were incorrect or incomplete


> 1073: address remaining TODOs and pre-merge cleanup
> ---------------------------------------------------
>
>                 Key: HDFS-2133
>                 URL: https://issues.apache.org/jira/browse/HDFS-2133
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Edit log branch (HDFS-1073)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: Edit log branch (HDFS-1073)
>
>         Attachments: hdfs-2133.txt
>
>
> There are a few TODOs still in the code and a bit of cleanup to be done before merging HDFS-1073. This JIRA is for this misc cleanup.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2133) 1073: address remaining TODOs and pre-merge cleanup

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated HDFS-2133:
------------------------------

          Component/s: name-node
          Description: There are a few TODOs still in the code and a bit of cleanup to be done before merging HDFS-1073. This JIRA is for this misc cleanup.
    Affects Version/s: Edit log branch (HDFS-1073)
        Fix Version/s: Edit log branch (HDFS-1073)

> 1073: address remaining TODOs and pre-merge cleanup
> ---------------------------------------------------
>
>                 Key: HDFS-2133
>                 URL: https://issues.apache.org/jira/browse/HDFS-2133
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Edit log branch (HDFS-1073)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: Edit log branch (HDFS-1073)
>
>
> There are a few TODOs still in the code and a bit of cleanup to be done before merging HDFS-1073. This JIRA is for this misc cleanup.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2133) 1073: address remaining TODOs and pre-merge cleanup

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065666#comment-13065666 ] 

Hudson commented on HDFS-2133:
------------------------------

Integrated in Hadoop-Hdfs-1073-branch #9 (See [https://builds.apache.org/job/Hadoop-Hdfs-1073-branch/9/])
    HDFS-2133. Address remaining TODOs and pre-merge cleanup on HDFS-1073 branch. Contributed by Todd Lipcon.

todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1146856
Files : 
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/JournalManager.java
* /hadoop/common/branches/HDFS-1073/hdfs/CHANGES.HDFS-1073.txt
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/protocol/CheckpointCommand.java
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileOutputStream.java
* /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/protocol/NamenodeRegistration.java


> 1073: address remaining TODOs and pre-merge cleanup
> ---------------------------------------------------
>
>                 Key: HDFS-2133
>                 URL: https://issues.apache.org/jira/browse/HDFS-2133
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Edit log branch (HDFS-1073)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: Edit log branch (HDFS-1073)
>
>         Attachments: hdfs-2133.txt
>
>
> There are a few TODOs still in the code and a bit of cleanup to be done before merging HDFS-1073. This JIRA is for this misc cleanup.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HDFS-2133) 1073: address remaining TODOs and pre-merge cleanup

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon resolved HDFS-2133.
-------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Committed to branch, thanks Eli.

> 1073: address remaining TODOs and pre-merge cleanup
> ---------------------------------------------------
>
>                 Key: HDFS-2133
>                 URL: https://issues.apache.org/jira/browse/HDFS-2133
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Edit log branch (HDFS-1073)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: Edit log branch (HDFS-1073)
>
>         Attachments: hdfs-2133.txt
>
>
> There are a few TODOs still in the code and a bit of cleanup to be done before merging HDFS-1073. This JIRA is for this misc cleanup.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira