|
4795_20081205.patch: remove the lease if the corresponding INode is not found.
Tsz Wo (Nicholas), SZE made changes - 06/Dec/08 02:37 AM
In the method check(), if the older entry has not expired, we should break out of the while loop? Otherwise this code will cause a tight loop until sortedLease.size() becomes 0 in size?
> In the method check(), if the older entry has not expired, we should break out of the while loop?
You are right. I removed the "break;" in the original codes but forgot to add a "return;" 4795_20081208.patch: fix the bug above. Will try to add a test.
Tsz Wo (Nicholas), SZE made changes - 08/Dec/08 06:10 PM
Tsz Wo (Nicholas), SZE made changes - 09/Dec/08 07:41 AM
4795_20081209.patch: incorporated Konstantin's comments.
Tsz Wo (Nicholas), SZE made changes - 09/Dec/08 08:54 PM
4795_20081209_0.18.patch: for 0.18
Tsz Wo (Nicholas), SZE made changes - 09/Dec/08 09:17 PM
TestLeaseMonitor.java: This is a manual test for the infinite loop problem.
Tsz Wo (Nicholas), SZE made changes - 09/Dec/08 10:49 PM
+1.
If the code in internalReleaseLease() below the new IOExceptions you introduced would throw an exception the data-structures may become inconsistent. But as I can see these exceptions are not thrown anywhere below under the conditions. We should commit this. Another concern that existing images will contain FileUnderConstruction, which will unclosable forever, and therefore we should investigate how to convert them into real files in a separate jira.
Robert Chansler made changes - 09/Dec/08 11:20 PM
Tsz Wo (Nicholas), SZE made changes - 10/Dec/08 10:03 PM
[exec] -1 overall.
[exec] +1 @author. The patch does not contain any @author tags.
[exec] -1 tests included. The patch doesn't appear to include any new or modified tests.
[exec] Please justify why no tests are needed for this patch.
[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.
Tested manually. No new tests added. Tested locally, only org.apache.hadoop.chukwa.datacollection.adaptor.filetailer.TestStartAtOffset failed. It does not seem related to this patch. Will file a issue I see it failing again.
4795_20081209_0.19.patch: for 0.19
Tsz Wo (Nicholas), SZE made changes - 11/Dec/08 01:07 AM
I just committed this.
Tsz Wo (Nicholas), SZE made changes - 11/Dec/08 01:28 AM
Integrated in Hadoop-trunk #685 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/685/
. Prevent lease monitor getting into an infinite loop when leases and the namespace tree does not match. (szetszwo)
Tsz Wo (Nicholas), SZE made changes - 31/Dec/08 06:09 AM
Nigel Daley made changes - 30/Jan/09 08:14 PM
Owen O'Malley made changes - 08/Jul/09 04:43 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Let me clarify this: the file creation lease is in the system but the corresponding file is not found. This should not happen normally.