|
Should we have a version of stopping the namenode gracefully, which automatically does the manual steps proposed in this change?
Forgot to remove public after doing some testing. Change getName() to getURI(). This makes sense since I fixed 2 warnings anyway.
I was also thinking about a real shutdown command, don't think we should introduce it now. This looks good. One minor comment if it would help. In the testcase, it would be good to create files, save namespace, stop namenode, start namenode and validate files.
> In addition, the name-node must be in safe mode, because we don't want to allow changing namespace during the save.
Safe mode may not be required since the namespace lock is acquired before saving images. Consider that saving images may take a long time, it makes sense to set safe mode.
+1 patch looks good. Below are the ant test-patch results.
[exec] +1 overall.
[exec] +1 @author. The patch does not contain any @author tags.
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec] +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
I just committed this.
In general we do not promote new features to earlier releases. But if there is a need to do that with this one let me know. > In general we do not promote new features to earlier releases.
> But if there is a need to do that with this one let me know. Even there is a need, we could not promote this to earlier releases since this is a incompatible change. Edit release note for publication.
> 6. I'd prefer to change documentation in a follow up issue.
Hi Konstantin, please create a follow up issue if you haven't. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Since saving the image is much faster than digesting the edits the command can substantially reduce the overall cluster restart time.
Recommended procedure for restarting the cluster:
The patch introduces a new DFSAdmin command which is called using
As all other DFSAdmin commands it requires superuser permissions.
In addition, the name-node must be in safe mode, because we don't want to allow changing namespace during the save.
In order to enter safe mode call
The patch also corrects 2 warnings in TestCheckpoint, and 2 Javadoc warnings in FSNamesystem.