Issue Details (XML | Word | Printable)

Key: HADOOP-3491
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lohit Vijayarenu
Reporter: Konstantin Shvachko
Votes: 0
Watchers: 0
Operations

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

Name-node shutdown causes InterruptedException in ResolutionMonitor

Created: 05/Jun/08 12:15 AM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: 0.16.0
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3491-1.patch 2008-06-06 08:26 PM Lohit Vijayarenu 0.6 kB
Text File Licensed for inclusion in ASF works HADOOP-3491-2.patch 2008-06-06 09:56 PM Lohit Vijayarenu 3 kB
Text File Licensed for inclusion in ASF works HADOOP-3491-3.patch 2008-06-06 10:13 PM Lohit Vijayarenu 3 kB

Hadoop Flags: Reviewed
Resolution Date: 07/Jun/08 12:00 AM


 Description  « Hide
ResolutionMonitor.run() catches a general Exception and logs them no matter what.
It should explicitly catch the InterruptedException and exit gracefully.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Lohit Vijayarenu added a comment - 06/Jun/08 08:26 PM
Attached patch, catches the exception and logs a one line warning instead of whole stack trace.

Lohit Vijayarenu made changes - 06/Jun/08 08:26 PM
Field Original Value New Value
Attachment HADOOP-3491-1.patch [ 12383589 ]
Lohit Vijayarenu made changes - 06/Jun/08 08:37 PM
Status Open [ 1 ] Patch Available [ 10002 ]
Lohit Vijayarenu added a comment - 06/Jun/08 08:43 PM
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[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]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.

No tests, I manually checked logs and dont see strack dump as earlier.


Konstantin Shvachko added a comment - 06/Jun/08 09:32 PM
I think InterruptedException should be caught inside the loop so that the ResolutionMonitor could check fsRunning and decide what to do based on its value.
And there should be no messages higher than debug level, imo.

Lohit Vijayarenu made changes - 06/Jun/08 09:33 PM
Status Patch Available [ 10002 ] Open [ 1 ]
Lohit Vijayarenu added a comment - 06/Jun/08 09:56 PM
Thanks Konstantin, Second try with your comments.

Lohit Vijayarenu made changes - 06/Jun/08 09:56 PM
Attachment HADOOP-3491-2.patch [ 12383598 ]
Lohit Vijayarenu made changes - 06/Jun/08 09:56 PM
Status Open [ 1 ] Patch Available [ 10002 ]
Lohit Vijayarenu made changes - 06/Jun/08 10:13 PM
Attachment HADOOP-3491-3.patch [ 12383602 ]
Lohit Vijayarenu added a comment - 06/Jun/08 10:30 PM
[exec] -1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[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]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]

Konstantin Shvachko added a comment - 06/Jun/08 10:48 PM
+1

Repository Revision Date User Message
ASF #664203 Fri Jun 06 23:58:47 UTC 2008 shv HADOOP-3491. Name-node shutdown causes InterruptedException in ResolutionMonitor. Contributed by Lohit Vijayarenu.
Files Changed
MODIFY /hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
MODIFY /hadoop/core/trunk/CHANGES.txt

Konstantin Shvachko added a comment - 07/Jun/08 12:00 AM
I just committed this. Thank you Lohit.

Konstantin Shvachko made changes - 07/Jun/08 12:00 AM
Resolution Fixed [ 1 ]
Hadoop Flags [Reviewed]
Assignee Lohit Vijayarenu [ lohit ]
Status Patch Available [ 10002 ] Resolved [ 5 ]
Hadoop QA added a comment - 07/Jun/08 12:07 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383602/HADOOP-3491-3.patch
against trunk revision 664159.

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

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

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

This message is automatically generated.


Nigel Daley made changes - 22/Aug/08 07:50 PM
Status Resolved [ 5 ] Closed [ 6 ]
Owen O'Malley made changes - 08/Jul/09 04:43 PM
Component/s dfs [ 12310710 ]