Issue Details (XML | Word | Printable)

Key: HADOOP-3375
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Tsz Wo (Nicholas), SZE
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 0
Operations

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

Lease paths are sometimes not removed from LeaseManager.sortedLeasesByPath

Created: 13/May/08 12:59 AM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 3375_20080512.patch 2008-05-13 01:47 AM Tsz Wo (Nicholas), SZE 12 kB
Text File Licensed for inclusion in ASF works 3375_20080514.patch 2008-05-14 06:41 PM Tsz Wo (Nicholas), SZE 15 kB
Text File Licensed for inclusion in ASF works 3375_20080519.patch 2008-05-20 12:29 AM Tsz Wo (Nicholas), SZE 5 kB
Text File Licensed for inclusion in ASF works 3375_20080520.patch 2008-05-20 06:33 PM Tsz Wo (Nicholas), SZE 5 kB
Issue Links:
Blocker
 

Hadoop Flags: Reviewed
Resolution Date: 20/May/08 11:09 PM


 Description  « Hide
In LeaseManager,
  • removeExpiredLease(Lease) does not remove paths from sortedLeasesByPath
  • removeLease(...) should do sortedLeasesByPath.remove(src) no matter lease.hasPath() returns true or false.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tsz Wo (Nicholas), SZE added a comment - 13/May/08 01:08 AM
Also, lease related structure should store names and paths as String instead of StringBytesWritable. It will prevent unnecessary converting between String and StringBytesWritable.

Tsz Wo (Nicholas), SZE added a comment - 13/May/08 01:47 AM
3375_20080512.patch: fixed sortedLeasesByPath and removed StringBytesWritable.

Hadoop QA added a comment - 13/May/08 03:38 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381917/3375_20080512.patch
against trunk revision 655674.

+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 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/2454/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2454/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2454/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2454/console

This message is automatically generated.


Robert Chansler added a comment - 13/May/08 11:29 PM
Nicholas reports that this may result in the loss of a lease record for every task that creates a file. This is a new problem not present in 0.16.

Robert Chansler added a comment - 13/May/08 11:58 PM
Not a 0.17 problem after all (only trunk). I'm sorry for the confusion.

dhruba borthakur added a comment - 14/May/08 05:53 PM
+1 code looks good. Is there a way to enhance an existing unit test to catch this situation?

Tsz Wo (Nicholas), SZE added a comment - 14/May/08 06:41 PM
3375_20080514.patch: added a test

Hadoop QA added a comment - 15/May/08 12:30 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12382068/3375_20080514.patch
against trunk revision 656270.

+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/2471/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2471/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2471/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2471/console

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 20/May/08 12:29 AM
3375_20080519.patch: reverted the change of removing StringBytesWritable since it needs more thought.

dhruba borthakur added a comment - 20/May/08 06:48 AM
I like the latest patch better since it does not affect the disk format. Changing the StringBytesWritbale is bets done in a separate patch.

Tsz Wo (Nicholas), SZE added a comment - 20/May/08 04:46 PM
> Changing the StringBytesWritbale is bets done in a separate patch.

Yes, I plan to create another issue for removing StringBytesWritbale which was introduced in HADOOP-1283.


Tsz Wo (Nicholas), SZE added a comment - 20/May/08 06:33 PM
3375_20080520.patch: updated javadoc

Hadoop QA added a comment - 20/May/08 08:21 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12382400/3375_20080520.patch
against trunk revision 658035.

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

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

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

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 20/May/08 09:10 PM
Two tests failed but none of them is related to the patch.

dhruba borthakur added a comment - 20/May/08 10:52 PM
+1. Code looks good.

dhruba borthakur added a comment - 20/May/08 11:09 PM
I just committed this. Thanks Nicholas!

Hudson added a comment - 22/May/08 12:24 PM

Tsz Wo (Nicholas), SZE added a comment - 28/May/08 09:07 PM
> Yes, I plan to create another issue for removing StringBytesWritbale which was introduced in HADOOP-1283.

Created HADOOP-3461