Issue Details (XML | Word | Printable)

Key: HADOOP-6233
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jitendra Nath Pandey
Reporter: Jitendra Nath Pandey
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Changes in common to rename the config keys as detailed in HDFS-531.

Created: 02/Sep/09 05:41 PM   Updated: 09/Oct/09 04:19 AM
Return to search
Component/s: fs
Affects Version/s: 0.21.0
Fix Version/s: 0.21.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-6233.1.patch 2009-09-02 05:46 PM Jitendra Nath Pandey 18 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.2.patch 2009-09-04 08:45 PM Jitendra Nath Pandey 22 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.3.patch 2009-09-08 05:40 PM Jitendra Nath Pandey 22 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.4.patch 2009-09-12 12:51 AM Jitendra Nath Pandey 43 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.5.patch 2009-09-14 09:44 PM Jitendra Nath Pandey 44 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.6.patch 2009-09-16 12:27 AM Jitendra Nath Pandey 44 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.7.patch 2009-09-17 11:17 PM Jitendra Nath Pandey 44 kB
Text File Licensed for inclusion in ASF works HADOOP-6233.8.patch 2009-09-18 08:54 PM Jitendra Nath Pandey 45 kB
Issue Links:
Blocker
 
Dependants
 

Hadoop Flags: Reviewed
Resolution Date: 19/Sep/09 12:27 AM


 Description  « Hide
This jira tracks the code changes required in common to rename the config keys. The list of changed keys is attached to HDFS-531.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jitendra Nath Pandey added a comment - 02/Sep/09 05:46 PM
The attached patch is created after merging the patch of HADOOP-6105.

Jakob Homan added a comment - 08/Sep/09 09:41 PM
Gave the patch a quick look-over:
  • The patch has gone stale with the committing of HADOOP-6234. The config key umask has been changed to umaskmode and its type is now a string.
  • I'm concerned about having all the key changes for all across the project clustered in one file, and more so that there's a separate file for just the fs. It seems to me this will lead to confusion about updating those values or adding new ones. Might it be better to include that info in the relevant file?
  • In Configuration, the code readability could be improved with a private static function like addDepKey(keyName, keyValue) that handles all the boiler plate of Configuration.addDeprecation(*, new String[] { *} ).

Tom White added a comment - 09/Sep/09 09:05 AM
I think it would be good to explicitly put the word "default" in the variable names for the default values. E.g. IO_NATIVE_LIB_AVAILABLE_DEFAULT rather than IO_NATIVE_LIB_AVAILABLE. This would avoid any doubt to users that the value is the current value, for example.

Jitendra Nath Pandey added a comment - 09/Sep/09 09:39 PM
> I'm concerned about having all the key changes for all across the project clustered in one file, and more so that there's a separate file for just the fs. It seems to me this will lead to confusion about updating those values or adding new ones. Might it be better to include that info in the relevant file?

I think it will be better to have just one class having all the configuration keys for entire common project, i.e. we should merge fs keys and other common keys into one single file. In my opinion, it will be easier for the users and developers if there is a single place to look for config keys or to add new keys. Also, since we have common configuration files, it will be better to have a common place to hold the config keys too, like in src/java/org/apache/hadoop/conf/CommonConfigurationKeys.java.


Jakob Homan added a comment - 18/Sep/09 06:37 PM
+1 pending Hudson or unit tests/test patch.

Hadoop QA added a comment - 18/Sep/09 09:48 PM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12420075/HADOOP-6233.8.patch
against trunk revision 816752.

+1 @author. The patch does not contain any @author tags.

+1 tests included. The patch appears to include 4 new or modified tests.

+1 javadoc. The javadoc tool did not generate any warning messages.

+1 javac. The applied patch does not increase the total number of javac compiler warnings.

+1 findbugs. The patch does not introduce any new Findbugs warnings.

+1 release audit. The applied patch does not increase the total number of release audit warnings.

+1 core tests. The patch passed core unit tests.

+1 contrib tests. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/53/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/53/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/53/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/53/console

This message is automatically generated.


Jakob Homan added a comment - 19/Sep/09 12:12 AM
+1 for updated patch, v8

Suresh Srinivas added a comment - 19/Sep/09 12:27 AM
Just committed this change. Thanks Jitendra.

Hudson added a comment - 19/Sep/09 12:40 AM
Integrated in Hadoop-Common-trunk-Commit #44 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/44/)
. Rename configuration keys towards API standardization and backward compatibility. Contributed by Jithendra Pandey.

Hudson added a comment - 19/Sep/09 11:09 AM
Integrated in Hadoop-Common-trunk #102 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/102/)
. Rename configuration keys towards API standardization and backward compatibility. Contributed by Jithendra Pandey.

Robert Chansler added a comment - 09/Oct/09 04:19 AM
Editorial pass over all release notes prior to publication of 0.21. Subtask.