hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir
Date Wed, 04 Apr 2012 18:11:22 GMT

     [ https://issues.apache.org/jira/browse/HDFS-3102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Aaron T. Myers updated HDFS-3102:

    Attachment: HDFS-3102.patch

Here's an updated patch which incorporates Eli's feedback.

bq. Since initializeSharedEdits swallows most IOEs and returns a boolean I'd update the throws
javadoc to indicate an IOE isn't throw for most error cases. Or perhaps swallow the IOE from
unlockAll and return false tehre as well

Good thinking. I made it catch/log/return in the case of an IOE from unlockAll, and removed
the throws declaration.

bq. Good to add a test that the force option works, specifically w/o specifying it we don't
blow away your existing shared edits dirs. The code obviously looks correct but this would
be a bad bug to introduce so worth checking

Note that the force option isn't actually exposed to the user - it's only used in testing.

Regardless, you're right that it's useful to add a test that we won't overwrite directories
without confirmation. I've add a little test to do so.
> Add CLI tool to initialize the shared-edits dir
> -----------------------------------------------
>                 Key: HDFS-3102
>                 URL: https://issues.apache.org/jira/browse/HDFS-3102
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: ha, name-node
>    Affects Versions: 0.24.0, 2.0.0
>            Reporter: Todd Lipcon
>            Assignee: Aaron T. Myers
>         Attachments: HDFS-3102.patch, HDFS-3102.patch, HDFS-3102.patch
> Currently in order to make a non-HA NN HA, you need to initialize the shared edits dir.
This can be done manually by cping directories around. It would be preferable to add a "namenode
-initializeSharedEdits" command to achieve this same effect.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message