[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-04 Thread Aaron T. Myers (Updated) (JIRA)

 [ 
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 a patch rebased on trunk.

 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


 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




[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-04 Thread Aaron T. Myers (Updated) (JIRA)

 [ 
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




[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-04 Thread Aaron T. Myers (Updated) (JIRA)

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

Aaron T. Myers updated HDFS-3102:
-

Target Version/s: 0.24.0, 2.0.0  (was: 2.0.0, 0.24.0)
  Issue Type: New Feature  (was: Improvement)

 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: New Feature
  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




[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-04 Thread Aaron T. Myers (Updated) (JIRA)

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

Aaron T. Myers updated HDFS-3102:
-

  Resolution: Fixed
   Fix Version/s: 2.0.0
Target Version/s: 0.24.0, 2.0.0  (was: 2.0.0, 0.24.0)
Hadoop Flags: Reviewed
  Status: Resolved  (was: Patch Available)

Thanks a lot for the reviews, Eli. I've just committed this to trunk and 
branch-2.

 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: New Feature
  Components: ha, name-node
Affects Versions: 0.24.0, 2.0.0
Reporter: Todd Lipcon
Assignee: Aaron T. Myers
 Fix For: 2.0.0

 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




[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-03 Thread Aaron T. Myers (Updated) (JIRA)

 [ 
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 a patch for trunk which addresses the issue.

 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


 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




[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-03 Thread Aaron T. Myers (Updated) (JIRA)

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

Aaron T. Myers updated HDFS-3102:
-

Target Version/s: 0.24.0, 2.0.0  (was: 2.0.0, 0.24.0)
  Status: Patch Available  (was: Open)

 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


 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




[jira] [Updated] (HDFS-3102) Add CLI tool to initialize the shared-edits dir

2012-04-03 Thread Aaron T. Myers (Updated) (JIRA)

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

Aaron T. Myers updated HDFS-3102:
-

 Target Version/s: 0.24.0, 2.0.0  (was: 0.23.4, 0.24.0)
Affects Version/s: (was: 0.23.3)
   2.0.0

 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


 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