Issue Details (XML | Word | Printable)

Key: HADOOP-4234
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Sriram Rao
Reporter: Sriram Rao
Votes: 0
Watchers: 1
Operations

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

KFS: Allow KFS layer to interface with multiple KFS namenodes

Created: 21/Sep/08 08:23 PM   Updated: 23/Apr/09 07:17 PM
Return to search
Component/s: fs
Affects Version/s: 0.19.0
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works patch.4234 2008-09-24 01:57 AM Sriram Rao 1 kB

Hadoop Flags: Reviewed
Release Note: Changed KFS glue layer to allow applications to interface with multiple KFS metaservers.
Resolution Date: 24/Sep/08 05:47 PM


 Description  « Hide
The KFS "glue" layer code in Hadoop, currently, only allows an application to interface with a single KFS namenode. The KFS client side library has been modified to allow applications to interface with multiple KFS namenodes. This jira issue is for incorporating the change into the KFS code.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Sriram Rao made changes - 22/Sep/08 07:27 PM
Field Original Value New Value
Attachment patch.4234 [ 12390672 ]
Sriram Rao added a comment - 22/Sep/08 07:28 PM
A patch file that fixes the issue is attached. This issue was found in a KFS deployment and was tested there. Testing this fix requires a KFS deployment.

Sriram Rao made changes - 22/Sep/08 07:28 PM
Status Open [ 1 ] Patch Available [ 10002 ]
Lohit Vijayarenu added a comment - 22/Sep/08 07:33 PM
+1 Looks good.

Tsz Wo (Nicholas), SZE added a comment - 22/Sep/08 08:10 PM
Should we keep checking whether kfsImpl == null?

Tsz Wo (Nicholas), SZE made changes - 22/Sep/08 08:10 PM
Component/s fs [ 12310689 ]
Assignee Sriram Rao [ sriramsrao ]
Sriram Rao added a comment - 22/Sep/08 08:19 PM
@Tsz: In the patch that is submitted, in the Init() method, we don't need to check whether kfsImpl == null. The KFS client library code keeps track of all the servers to which the client is connected to; it build a new "handle" for each new server.

Hadoop QA added a comment - 22/Sep/08 11:19 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12390672/patch.4234
against trunk revision 697306.

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

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

-1 patch. The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3347/console

This message is automatically generated.


Sriram Rao made changes - 23/Sep/08 06:43 AM
Attachment patch.4234 [ 12390672 ]
Sriram Rao added a comment - 23/Sep/08 06:45 AM
Providing a new patch since the previous one didn't work.

Re: no new test, this issue was found in a KFS deployment. To test this code path, a KFS+Hadoop deployment is required; that was done elsewhere.


Sriram Rao made changes - 23/Sep/08 06:45 AM
Attachment patch.4234 [ 12390719 ]
Lohit Vijayarenu made changes - 23/Sep/08 04:34 PM
Status Patch Available [ 10002 ] Open [ 1 ]
Lohit Vijayarenu made changes - 23/Sep/08 04:34 PM
Status Open [ 1 ] Patch Available [ 10002 ]
Hadoop QA added a comment - 23/Sep/08 10:49 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12390719/patch.4234
against trunk revision 698187.

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

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+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 core tests. The patch failed core unit tests.

-1 contrib tests. The patch failed contrib unit tests.

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

This message is automatically generated.


Sriram Rao made changes - 24/Sep/08 01:55 AM
Attachment patch.4234 [ 12390719 ]
Sriram Rao added a comment - 24/Sep/08 01:57 AM
Updated patch that passes the tests.

Sriram Rao made changes - 24/Sep/08 01:57 AM
Attachment patch.4234 [ 12390805 ]
Lohit Vijayarenu made changes - 24/Sep/08 01:57 AM
Status Patch Available [ 10002 ] Open [ 1 ]
Lohit Vijayarenu made changes - 24/Sep/08 01:58 AM
Status Open [ 1 ] Patch Available [ 10002 ]
Hadoop QA added a comment - 24/Sep/08 08:03 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12390805/patch.4234
against trunk revision 698385.

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

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+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 core tests. The patch passed core unit tests.

-1 contrib tests. The patch failed contrib unit tests.

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

This message is automatically generated.


Repository Revision Date User Message
ASF #698671 Wed Sep 24 17:46:01 UTC 2008 lohit HADOOP-4234. Fix KFS "glue" layer to allow applications to interface with multiple KFS metaservers. (Sriram Rao via lohit)
Files Changed
MODIFY /hadoop/core/trunk/src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
MODIFY /hadoop/core/trunk/CHANGES.txt

Lohit Vijayarenu added a comment - 24/Sep/08 05:47 PM
I just committed this. Thank you Sriram.

Lohit Vijayarenu made changes - 24/Sep/08 05:47 PM
Resolution Fixed [ 1 ]
Fix Version/s 0.19.0 [ 12313211 ]
Fix Version/s 0.20.0 [ 12313438 ]
Release Note Fix KFS "glue" layer to allow applications to interface with multiple KFS metaservers.
Status Patch Available [ 10002 ] Resolved [ 5 ]
Hadoop Flags [Reviewed]
Lohit Vijayarenu made changes - 24/Sep/08 05:47 PM
Affects Version/s 0.19.0 [ 12313211 ]
Lohit Vijayarenu added a comment - 24/Sep/08 05:49 PM
contrib test failure is tracked in HADOOP-4257. And test cases are not included as this was tested on KFS deployment.

Owen O'Malley added a comment - 24/Sep/08 05:53 PM
The change comment for this should probably be in new feature or improvement rather than bug.

Repository Revision Date User Message
ASF #698677 Wed Sep 24 18:02:43 UTC 2008 lohit HADOOP-4234 Moving updates in CHANGES.txt from BUG to IMPROVEMENTS.
Files Changed
MODIFY /hadoop/core/trunk/CHANGES.txt

Lohit Vijayarenu added a comment - 24/Sep/08 07:01 PM

The change comment for this should probably be in new feature or improvement rather than bug.

Thanks Owen. Changed it with a comment.


Hudson added a comment - 26/Sep/08 05:03 PM

Robert Chansler made changes - 03/Mar/09 07:14 PM
Issue Type Bug [ 1 ] Improvement [ 4 ]
Release Note Fix KFS "glue" layer to allow applications to interface with multiple KFS metaservers. Changed KFS glue layer to allow applications to interface with multiple KFS metaservers.
Nigel Daley made changes - 23/Apr/09 07:17 PM
Status Resolved [ 5 ] Closed [ 6 ]