|
[
Permlink
| « Hide
]
Tsz Wo (Nicholas), SZE added a comment - 18/Dec/07 11:19 PM
If the suggestions are good, here is a patch.
I think removing white space from the start and end of the values is a good thing. I'm pretty skeptical of using hexadecimal and octal numbers. I think it will confuse users a lot if 010 == 8.
I am positive on both trimming and decoding.
I don't think anybody will be setting say replication to 011. But having an opportunity to set dfs.block.size to 0x4000000 rather than to 67108864 is an advantage imo. > I think it will confuse users a lot if 010 == 8.
I agree that it might be a problem and such problem is hard to be detected. How about we make a special syntax for octal? Maybe something like: octal10 = 8 No special invented formats!
I'm persuaded that it is convenient and less error prone to set a file mode to 0777 or to set a length of 0x10000 bytes. How large is the community of the confused if we choose a representation that is in the intersection of C and Java? 2461_20080208.patch: syn with current trunk
I think Nicholas's patch here suffices the requirements.
It does trimming of configuration names. And accepts decimal, hexadecimal, and octal numbers, the representation followed in Java. Do we need to do anything more here? If not, Nicholas could you please submit patch in sync with the trunk? And in the latest patch the testcase was missing, could you include testcase also in the patch? It seems that "accept decimal, hexadecimal, and octal numbers" needs more discussion since it introduces a user-level incompatible change and the octal notation may confuse some users.
2461_20080425.patch: added a test. The patch only does trim spaces.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12380961/2461_20080425.patch against trunk revision 645773. @author +1. The patch does not contain any @author tags. tests included +1. The patch appears to include 5 new or modified tests. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new javac compiler warnings. release audit +1. The applied patch does not generate any new release audit warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2330/testReport/ This message is automatically generated. I just committed this. Thank you Nicholas.
Integrated in Hadoop-trunk #475 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/475/
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||