HADOOP-9556. disable HA tests on Windows that fail due to ZooKeeper client connection management bug. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1480880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2013-05-10 05:50:48 +00:00
parent 7e5b63af13
commit ae9a981855
4 changed files with 22 additions and 3 deletions

View File

@ -170,6 +170,9 @@ Trunk (Unreleased)
HADOOP-8608. Add Configuration API for parsing time durations. (cdouglas) HADOOP-8608. Add Configuration API for parsing time durations. (cdouglas)
HADOOP-9540. Expose the InMemoryS3 and S3N FilesystemStores implementations
for Unit testing. (Hari via stevel)
BUG FIXES BUG FIXES
HADOOP-9451. Fault single-layer config if node group topology is enabled. HADOOP-9451. Fault single-layer config if node group topology is enabled.
@ -548,8 +551,9 @@ Trunk (Unreleased)
HADOOP-9483. winutils support for readlink command. HADOOP-9483. winutils support for readlink command.
(Arpit Agarwal via suresh) (Arpit Agarwal via suresh)
HADOOP-9540. Expose the InMemoryS3 and S3N FilesystemStores implementations for Unit testing. HADOOP-9556. disable HA tests on Windows that fail due to ZooKeeper client
(Hari via stevel) connection management bug. (Chris Nauroth via suresh)
Release 2.0.5-beta - UNRELEASED Release 2.0.5-beta - UNRELEASED

View File

@ -20,6 +20,7 @@ package org.apache.hadoop.ha;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import java.util.Collections; import java.util.Collections;
import java.util.UUID; import java.util.UUID;
@ -28,6 +29,7 @@ import org.apache.commons.logging.impl.Log4JLogger;
import org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback; import org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback;
import org.apache.hadoop.ha.ActiveStandbyElector.State; import org.apache.hadoop.ha.ActiveStandbyElector.State;
import org.apache.hadoop.ha.HAZKUtil.ZKAuthInfo; import org.apache.hadoop.ha.HAZKUtil.ZKAuthInfo;
import org.apache.hadoop.util.Shell;
import org.apache.log4j.Level; import org.apache.log4j.Level;
import org.apache.zookeeper.ZooDefs.Ids; import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.server.ZooKeeperServer; import org.apache.zookeeper.server.ZooKeeperServer;
@ -59,6 +61,8 @@ public class TestActiveStandbyElectorRealZK extends ClientBaseWithFixes {
@Override @Override
public void setUp() throws Exception { public void setUp() throws Exception {
// skip tests on Windows until after resolution of ZooKeeper client bug
assumeTrue(!Shell.WINDOWS);
super.setUp(); super.setUp();
zkServer = getServer(serverFactory); zkServer = getServer(serverFactory);

View File

@ -18,6 +18,7 @@
package org.apache.hadoop.ha; package org.apache.hadoop.ha;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.junit.Assume.assumeTrue;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
@ -28,6 +29,7 @@ import org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo;
import org.apache.hadoop.ha.HealthMonitor.State; import org.apache.hadoop.ha.HealthMonitor.State;
import org.apache.hadoop.ha.MiniZKFCCluster.DummyZKFC; import org.apache.hadoop.ha.MiniZKFCCluster.DummyZKFC;
import org.apache.hadoop.test.GenericTestUtils; import org.apache.hadoop.test.GenericTestUtils;
import org.apache.hadoop.util.Shell;
import org.apache.hadoop.util.Time; import org.apache.hadoop.util.Time;
import org.apache.log4j.Level; import org.apache.log4j.Level;
import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.KeeperException;
@ -66,6 +68,8 @@ public class TestZKFailoverController extends ClientBaseWithFixes {
@Before @Before
public void setupConfAndServices() { public void setupConfAndServices() {
// skip tests on Windows until after resolution of ZooKeeper client bug
assumeTrue(!Shell.WINDOWS);
conf = new Configuration(); conf = new Configuration();
conf.set(ZKFailoverController.ZK_ACL_KEY, TEST_ACL); conf.set(ZKFailoverController.ZK_ACL_KEY, TEST_ACL);
conf.set(ZKFailoverController.ZK_AUTH_KEY, TEST_AUTH_GOOD); conf.set(ZKFailoverController.ZK_AUTH_KEY, TEST_AUTH_GOOD);

View File

@ -17,10 +17,13 @@
*/ */
package org.apache.hadoop.ha; package org.apache.hadoop.ha;
import static org.junit.Assume.assumeTrue;
import java.util.Random; import java.util.Random;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.util.Shell;
import org.apache.hadoop.util.Time; import org.apache.hadoop.util.Time;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
@ -45,6 +48,8 @@ public class TestZKFailoverControllerStress extends ClientBaseWithFixes {
@Before @Before
public void setupConfAndServices() throws Exception { public void setupConfAndServices() throws Exception {
// skip tests on Windows until after resolution of ZooKeeper client bug
assumeTrue(!Shell.WINDOWS);
conf = new Configuration(); conf = new Configuration();
conf.set(ZKFailoverController.ZK_QUORUM_KEY, hostPort); conf.set(ZKFailoverController.ZK_QUORUM_KEY, hostPort);
this.cluster = new MiniZKFCCluster(conf, getServer(serverFactory)); this.cluster = new MiniZKFCCluster(conf, getServer(serverFactory));
@ -52,8 +57,10 @@ public class TestZKFailoverControllerStress extends ClientBaseWithFixes {
@After @After
public void stopCluster() throws Exception { public void stopCluster() throws Exception {
if (cluster != null) {
cluster.stop(); cluster.stop();
} }
}
/** /**
* Simply fail back and forth between two services for the * Simply fail back and forth between two services for the