HDFS-2789. TestHAAdmin.testFailover is failing. Contributed by Eli Collins
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1623@1231577 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58f2da1c85
commit
1c24ae0cd8
@ -26,6 +26,7 @@
|
|||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
|
import org.apache.hadoop.ha.HAServiceProtocol.HAServiceState;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -102,6 +103,7 @@ public void testTransitionToStandby() throws Exception {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFailover() throws Exception {
|
public void testFailover() throws Exception {
|
||||||
|
Mockito.doReturn(HAServiceState.STANDBY).when(mockProtocol).getServiceState();
|
||||||
assertEquals(0, runTool("-failover", "xxx", "yyy"));
|
assertEquals(0, runTool("-failover", "xxx", "yyy"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,3 +103,5 @@ HDFS-2775. Fix TestStandbyCheckpoints.testBothNodesInStandbyState failing interm
|
|||||||
HDFS-2766. Test for case where standby partially reads log and then performs checkpoint. (atm)
|
HDFS-2766. Test for case where standby partially reads log and then performs checkpoint. (atm)
|
||||||
|
|
||||||
HDFS-2738. FSEditLog.selectinputStreams is reading through in-progress streams even when non-in-progress are requested. (atm)
|
HDFS-2738. FSEditLog.selectinputStreams is reading through in-progress streams even when non-in-progress are requested. (atm)
|
||||||
|
|
||||||
|
HDFS-2789. TestHAAdmin.testFailover is failing (eli)
|
||||||
|
Loading…
Reference in New Issue
Block a user