Details

Description

HDFS-3026 made it so that an HA NN that does not fully complete an HA state transition will exit immediately. TestFailureToReadEdits has a test case which causes an incomplete state transition, thus causing a JVM exit in the test.

Aaron T. Myers
added a comment - 15/May/12 21:07 Here's a patch which fixes the issue. The trouble was that the test JVM was exiting in this case post HDFS-3026 . The fix is to stub out the Runtime.
There's also another fix in this patch related to the fact that HDFS-3031 changed the expected exception stack in the case of an error from transitionToActive.

Hadoop QA
added a comment - 15/May/12 22:35 +1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12527505/HDFS-3413.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 1 new or modified test files.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs.
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/2444//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2444//console
This message is automatically generated.

HDFS-3026 made it so that an HA NN that does not fully complete an HA state transition will exit immediately. TestFailureToReadEdits has a test case which causes an incomplete state transition, thus causing a JVM exit in the test.