HBASE-8303 Increse the test timeout to 60s when they are less than 20s
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1466127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
52343c5516
commit
889777bf59
|
@ -52,7 +52,7 @@ public class TestSnapshotFromAdmin {
|
||||||
* passed from the server ensures the correct overall waiting for the snapshot to finish.
|
* passed from the server ensures the correct overall waiting for the snapshot to finish.
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 10000)
|
@Test(timeout = 60000)
|
||||||
public void testBackoffLogic() throws Exception {
|
public void testBackoffLogic() throws Exception {
|
||||||
final int maxWaitTime = 7500;
|
final int maxWaitTime = 7500;
|
||||||
final int numRetries = 10;
|
final int numRetries = 10;
|
||||||
|
|
|
@ -217,7 +217,7 @@ public class TestZooKeeper {
|
||||||
* test differs from {@link #testMasterSessionExpired} because here
|
* test differs from {@link #testMasterSessionExpired} because here
|
||||||
* the master znode will exist in ZK.
|
* the master znode will exist in ZK.
|
||||||
*/
|
*/
|
||||||
@Test(timeout=20000)
|
@Test(timeout = 60000)
|
||||||
public void testMasterZKSessionRecoveryFailure() throws Exception {
|
public void testMasterZKSessionRecoveryFailure() throws Exception {
|
||||||
MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();
|
MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();
|
||||||
HMaster m = cluster.getMaster();
|
HMaster m = cluster.getMaster();
|
||||||
|
|
|
@ -595,7 +595,7 @@ public class TestHCM {
|
||||||
* ZooKeeper quorum set. Other stuff like master address will be read
|
* ZooKeeper quorum set. Other stuff like master address will be read
|
||||||
* from ZK by the client.
|
* from ZK by the client.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 10000)
|
@Test(timeout = 60000)
|
||||||
public void testConnection() throws Exception{
|
public void testConnection() throws Exception{
|
||||||
// We create an empty config and add the ZK address.
|
// We create an empty config and add the ZK address.
|
||||||
Configuration c = new Configuration();
|
Configuration c = new Configuration();
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class TestConstraint {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Test(timeout = 10000)
|
@Test(timeout = 60000)
|
||||||
public void testConstraintFails() throws Exception {
|
public void testConstraintFails() throws Exception {
|
||||||
|
|
||||||
// create the table
|
// create the table
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class TestTimeoutExceptionInjector {
|
||||||
/**
|
/**
|
||||||
* Test that a manually triggered timer fires an exception.
|
* Test that a manually triggered timer fires an exception.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testTimerTrigger() {
|
public void testTimerTrigger() {
|
||||||
final long time = 10000000; // pick a value that is very far in the future
|
final long time = 10000000; // pick a value that is very far in the future
|
||||||
ForeignExceptionListener listener = Mockito.mock(ForeignExceptionListener.class);
|
ForeignExceptionListener listener = Mockito.mock(ForeignExceptionListener.class);
|
||||||
|
@ -64,7 +64,7 @@ public class TestTimeoutExceptionInjector {
|
||||||
* Demonstrate TimeoutExceptionInjector semantics -- completion means no more exceptions passed to
|
* Demonstrate TimeoutExceptionInjector semantics -- completion means no more exceptions passed to
|
||||||
* error listener.
|
* error listener.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testStartAfterComplete() throws InterruptedException {
|
public void testStartAfterComplete() throws InterruptedException {
|
||||||
final long time = 10;
|
final long time = 10;
|
||||||
ForeignExceptionListener listener = Mockito.mock(ForeignExceptionListener.class);
|
ForeignExceptionListener listener = Mockito.mock(ForeignExceptionListener.class);
|
||||||
|
@ -84,7 +84,7 @@ public class TestTimeoutExceptionInjector {
|
||||||
* Demonstrate TimeoutExceptionInjector semantics -- triggering fires exception and completes
|
* Demonstrate TimeoutExceptionInjector semantics -- triggering fires exception and completes
|
||||||
* the timer.
|
* the timer.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testStartAfterTrigger() throws InterruptedException {
|
public void testStartAfterTrigger() throws InterruptedException {
|
||||||
final long time = 10;
|
final long time = 10;
|
||||||
ForeignExceptionListener listener = Mockito.mock(ForeignExceptionListener.class);
|
ForeignExceptionListener listener = Mockito.mock(ForeignExceptionListener.class);
|
||||||
|
|
|
@ -185,7 +185,7 @@ public class TestAssignmentManager {
|
||||||
* @throws InterruptedException
|
* @throws InterruptedException
|
||||||
* @throws DeserializationException
|
* @throws DeserializationException
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testBalanceOnMasterFailoverScenarioWithOpenedNode()
|
public void testBalanceOnMasterFailoverScenarioWithOpenedNode()
|
||||||
throws IOException, KeeperException, InterruptedException, ServiceException, DeserializationException {
|
throws IOException, KeeperException, InterruptedException, ServiceException, DeserializationException {
|
||||||
AssignmentManagerWithExtrasForTesting am =
|
AssignmentManagerWithExtrasForTesting am =
|
||||||
|
@ -233,7 +233,7 @@ public class TestAssignmentManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testBalanceOnMasterFailoverScenarioWithClosedNode()
|
public void testBalanceOnMasterFailoverScenarioWithClosedNode()
|
||||||
throws IOException, KeeperException, InterruptedException, ServiceException, DeserializationException {
|
throws IOException, KeeperException, InterruptedException, ServiceException, DeserializationException {
|
||||||
AssignmentManagerWithExtrasForTesting am =
|
AssignmentManagerWithExtrasForTesting am =
|
||||||
|
@ -282,7 +282,7 @@ public class TestAssignmentManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testBalanceOnMasterFailoverScenarioWithOfflineNode()
|
public void testBalanceOnMasterFailoverScenarioWithOfflineNode()
|
||||||
throws IOException, KeeperException, InterruptedException, ServiceException, DeserializationException {
|
throws IOException, KeeperException, InterruptedException, ServiceException, DeserializationException {
|
||||||
AssignmentManagerWithExtrasForTesting am =
|
AssignmentManagerWithExtrasForTesting am =
|
||||||
|
@ -686,7 +686,7 @@ public class TestAssignmentManager {
|
||||||
* situation
|
* situation
|
||||||
* @throws ServiceException
|
* @throws ServiceException
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testProcessDeadServersAndRegionsInTransitionShouldNotFailWithNPE()
|
public void testProcessDeadServersAndRegionsInTransitionShouldNotFailWithNPE()
|
||||||
throws IOException, KeeperException, InterruptedException, ServiceException {
|
throws IOException, KeeperException, InterruptedException, ServiceException {
|
||||||
final RecoverableZooKeeper recoverableZk = Mockito
|
final RecoverableZooKeeper recoverableZk = Mockito
|
||||||
|
@ -716,7 +716,7 @@ public class TestAssignmentManager {
|
||||||
* TestCase verifies that the regionPlan is updated whenever a region fails to open
|
* TestCase verifies that the regionPlan is updated whenever a region fails to open
|
||||||
* and the master tries to process RS_ZK_FAILED_OPEN state.(HBASE-5546).
|
* and the master tries to process RS_ZK_FAILED_OPEN state.(HBASE-5546).
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testRegionPlanIsUpdatedWhenRegionFailsToOpen() throws IOException, KeeperException,
|
public void testRegionPlanIsUpdatedWhenRegionFailsToOpen() throws IOException, KeeperException,
|
||||||
ServiceException, InterruptedException {
|
ServiceException, InterruptedException {
|
||||||
this.server.getConfiguration().setClass(
|
this.server.getConfiguration().setClass(
|
||||||
|
@ -814,7 +814,7 @@ public class TestAssignmentManager {
|
||||||
* region which is in Opening state on a dead RS. Master should immediately
|
* region which is in Opening state on a dead RS. Master should immediately
|
||||||
* assign the region and not wait for Timeout Monitor.(Hbase-5882).
|
* assign the region and not wait for Timeout Monitor.(Hbase-5882).
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testRegionInOpeningStateOnDeadRSWhileMasterFailover() throws IOException,
|
public void testRegionInOpeningStateOnDeadRSWhileMasterFailover() throws IOException,
|
||||||
KeeperException, ServiceException, InterruptedException {
|
KeeperException, ServiceException, InterruptedException {
|
||||||
AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager(
|
AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager(
|
||||||
|
@ -846,7 +846,7 @@ public class TestAssignmentManager {
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 10000)
|
@Test(timeout = 60000)
|
||||||
public void testDisablingTableRegionsAssignmentDuringCleanClusterStartup()
|
public void testDisablingTableRegionsAssignmentDuringCleanClusterStartup()
|
||||||
throws KeeperException, IOException, Exception {
|
throws KeeperException, IOException, Exception {
|
||||||
this.server.getConfiguration().setClass(HConstants.HBASE_MASTER_LOADBALANCER_CLASS,
|
this.server.getConfiguration().setClass(HConstants.HBASE_MASTER_LOADBALANCER_CLASS,
|
||||||
|
|
|
@ -171,7 +171,7 @@ public class TestSnapshotFromMaster {
|
||||||
* <li>If asking about a snapshot has hasn't occurred, you should get an error.</li>
|
* <li>If asking about a snapshot has hasn't occurred, you should get an error.</li>
|
||||||
* </ol>
|
* </ol>
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 15000)
|
@Test(timeout = 60000)
|
||||||
public void testIsDoneContract() throws Exception {
|
public void testIsDoneContract() throws Exception {
|
||||||
|
|
||||||
IsSnapshotDoneRequest.Builder builder = IsSnapshotDoneRequest.newBuilder();
|
IsSnapshotDoneRequest.Builder builder = IsSnapshotDoneRequest.newBuilder();
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class TestProcedure {
|
||||||
* With a single member, verify ordered execution. The Coordinator side is run in a separate
|
* With a single member, verify ordered execution. The Coordinator side is run in a separate
|
||||||
* thread so we can only trigger from members and wait for particular state latches.
|
* thread so we can only trigger from members and wait for particular state latches.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testSingleMember() throws Exception {
|
public void testSingleMember() throws Exception {
|
||||||
// The member
|
// The member
|
||||||
List<String> members = new ArrayList<String>();
|
List<String> members = new ArrayList<String>();
|
||||||
|
@ -126,7 +126,7 @@ public class TestProcedure {
|
||||||
verify(procspy, never()).receive(any(ForeignException.class));
|
verify(procspy, never()).receive(any(ForeignException.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=1000)
|
@Test(timeout = 60000)
|
||||||
public void testMultipleMember() throws Exception {
|
public void testMultipleMember() throws Exception {
|
||||||
// 2 members
|
// 2 members
|
||||||
List<String> members = new ArrayList<String>();
|
List<String> members = new ArrayList<String>();
|
||||||
|
@ -178,7 +178,7 @@ public class TestProcedure {
|
||||||
verify(procspy, never()).receive(any(ForeignException.class));
|
verify(procspy, never()).receive(any(ForeignException.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testErrorPropagation() throws Exception {
|
public void testErrorPropagation() throws Exception {
|
||||||
List<String> members = new ArrayList<String>();
|
List<String> members = new ArrayList<String>();
|
||||||
members.add("member");
|
members.add("member");
|
||||||
|
@ -203,7 +203,7 @@ public class TestProcedure {
|
||||||
verify(procspy).sendGlobalBarrierComplete();
|
verify(procspy).sendGlobalBarrierComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testBarrieredErrorPropagation() throws Exception {
|
public void testBarrieredErrorPropagation() throws Exception {
|
||||||
List<String> members = new ArrayList<String>();
|
List<String> members = new ArrayList<String>();
|
||||||
members.add("member");
|
members.add("member");
|
||||||
|
|
|
@ -116,7 +116,7 @@ public class TestProcedureCoordinator {
|
||||||
/**
|
/**
|
||||||
* Check handling a connection failure correctly if we get it during the acquiring phase
|
* Check handling a connection failure correctly if we get it during the acquiring phase
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testUnreachableControllerDuringPrepare() throws Exception {
|
public void testUnreachableControllerDuringPrepare() throws Exception {
|
||||||
coordinator = buildNewCoordinator();
|
coordinator = buildNewCoordinator();
|
||||||
// setup the proc
|
// setup the proc
|
||||||
|
@ -147,7 +147,7 @@ public class TestProcedureCoordinator {
|
||||||
/**
|
/**
|
||||||
* Check handling a connection failure correctly if we get it during the barrier phase
|
* Check handling a connection failure correctly if we get it during the barrier phase
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 5000)
|
@Test(timeout = 60000)
|
||||||
public void testUnreachableControllerDuringCommit() throws Exception {
|
public void testUnreachableControllerDuringCommit() throws Exception {
|
||||||
coordinator = buildNewCoordinator();
|
coordinator = buildNewCoordinator();
|
||||||
|
|
||||||
|
@ -177,17 +177,17 @@ public class TestProcedureCoordinator {
|
||||||
anyListOf(String.class));
|
anyListOf(String.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testNoCohort() throws Exception {
|
public void testNoCohort() throws Exception {
|
||||||
runSimpleProcedure();
|
runSimpleProcedure();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testSingleCohortOrchestration() throws Exception {
|
public void testSingleCohortOrchestration() throws Exception {
|
||||||
runSimpleProcedure("one");
|
runSimpleProcedure("one");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testMultipleCohortOrchestration() throws Exception {
|
public void testMultipleCohortOrchestration() throws Exception {
|
||||||
runSimpleProcedure("one", "two", "three", "four");
|
runSimpleProcedure("one", "two", "three", "four");
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,7 @@ public class TestProcedureCoordinator {
|
||||||
/**
|
/**
|
||||||
* Test that if nodes join the barrier early we still correctly handle the progress
|
* Test that if nodes join the barrier early we still correctly handle the progress
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testEarlyJoiningBarrier() throws Exception {
|
public void testEarlyJoiningBarrier() throws Exception {
|
||||||
final String[] cohort = new String[] { "one", "two", "three", "four" };
|
final String[] cohort = new String[] { "one", "two", "three", "four" };
|
||||||
coordinator = buildNewCoordinator();
|
coordinator = buildNewCoordinator();
|
||||||
|
|
|
@ -155,7 +155,7 @@ public class TestProcedureMember {
|
||||||
* Make sure we call cleanup etc, when we have an exception during
|
* Make sure we call cleanup etc, when we have an exception during
|
||||||
* {@link Subprocedure#acquireBarrier()}.
|
* {@link Subprocedure#acquireBarrier()}.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testMemberPrepareException() throws Exception {
|
public void testMemberPrepareException() throws Exception {
|
||||||
buildCohortMemberPair();
|
buildCohortMemberPair();
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ public class TestProcedureMember {
|
||||||
/**
|
/**
|
||||||
* Make sure we call cleanup etc, when we have an exception during prepare.
|
* Make sure we call cleanup etc, when we have an exception during prepare.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testSendMemberAcquiredCommsFailure() throws Exception {
|
public void testSendMemberAcquiredCommsFailure() throws Exception {
|
||||||
buildCohortMemberPair();
|
buildCohortMemberPair();
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@ public class TestProcedureMember {
|
||||||
* is checked. Thus, the {@link Subprocedure#prepare} should succeed but later get rolled back
|
* is checked. Thus, the {@link Subprocedure#prepare} should succeed but later get rolled back
|
||||||
* via {@link Subprocedure#cleanup}.
|
* via {@link Subprocedure#cleanup}.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testCoordinatorAbort() throws Exception {
|
public void testCoordinatorAbort() throws Exception {
|
||||||
buildCohortMemberPair();
|
buildCohortMemberPair();
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ public class TestProcedureMember {
|
||||||
* member. Members are then responsible for reading its TX log. This implementation actually
|
* member. Members are then responsible for reading its TX log. This implementation actually
|
||||||
* rolls back, and thus breaks the normal TX guarantees.
|
* rolls back, and thus breaks the normal TX guarantees.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testMemberCommitException() throws Exception {
|
public void testMemberCommitException() throws Exception {
|
||||||
buildCohortMemberPair();
|
buildCohortMemberPair();
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ public class TestProcedureMember {
|
||||||
* member. Members are then responsible for reading its TX log. This implementation actually
|
* member. Members are then responsible for reading its TX log. This implementation actually
|
||||||
* rolls back, and thus breaks the normal TX guarantees.
|
* rolls back, and thus breaks the normal TX guarantees.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testMemberCommitCommsFailure() throws Exception {
|
public void testMemberCommitCommsFailure() throws Exception {
|
||||||
buildCohortMemberPair();
|
buildCohortMemberPair();
|
||||||
final TimeoutException oate = new TimeoutException("bogus timeout",1,2,0);
|
final TimeoutException oate = new TimeoutException("bogus timeout",1,2,0);
|
||||||
|
@ -353,7 +353,7 @@ public class TestProcedureMember {
|
||||||
* Fail correctly on getting an external error while waiting for the prepared latch
|
* Fail correctly on getting an external error while waiting for the prepared latch
|
||||||
* @throws Exception on failure
|
* @throws Exception on failure
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 1000)
|
@Test(timeout = 60000)
|
||||||
public void testPropagateConnectionErrorBackToManager() throws Exception {
|
public void testPropagateConnectionErrorBackToManager() throws Exception {
|
||||||
// setup the operation
|
// setup the operation
|
||||||
member = buildCohortMember();
|
member = buildCohortMember();
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class TestZKProcedureControllers {
|
||||||
* Smaller test to just test the actuation on the cohort member
|
* Smaller test to just test the actuation on the cohort member
|
||||||
* @throws Exception on failure
|
* @throws Exception on failure
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 15000)
|
@Test(timeout = 60000)
|
||||||
public void testSimpleZKCohortMemberController() throws Exception {
|
public void testSimpleZKCohortMemberController() throws Exception {
|
||||||
ZooKeeperWatcher watcher = UTIL.getZooKeeperWatcher();
|
ZooKeeperWatcher watcher = UTIL.getZooKeeperWatcher();
|
||||||
final String operationName = "instanceTest";
|
final String operationName = "instanceTest";
|
||||||
|
@ -137,7 +137,7 @@ public class TestZKProcedureControllers {
|
||||||
assertEquals("Didn't delete commit node", -1, ZKUtil.checkExists(watcher, commit));
|
assertEquals("Didn't delete commit node", -1, ZKUtil.checkExists(watcher, commit));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 15000)
|
@Test(timeout = 60000)
|
||||||
public void testZKCoordinatorControllerWithNoCohort() throws Exception {
|
public void testZKCoordinatorControllerWithNoCohort() throws Exception {
|
||||||
final String operationName = "no cohort controller test";
|
final String operationName = "no cohort controller test";
|
||||||
final byte[] data = new byte[] { 1, 2, 3 };
|
final byte[] data = new byte[] { 1, 2, 3 };
|
||||||
|
@ -146,7 +146,7 @@ public class TestZKProcedureControllers {
|
||||||
runMockCommitWithOrchestratedControllers(startCohortFirst, operationName, data);
|
runMockCommitWithOrchestratedControllers(startCohortFirst, operationName, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 15000)
|
@Test(timeout = 60000)
|
||||||
public void testZKCoordinatorControllerWithSingleMemberCohort() throws Exception {
|
public void testZKCoordinatorControllerWithSingleMemberCohort() throws Exception {
|
||||||
final String operationName = "single member controller test";
|
final String operationName = "single member controller test";
|
||||||
final byte[] data = new byte[] { 1, 2, 3 };
|
final byte[] data = new byte[] { 1, 2, 3 };
|
||||||
|
@ -155,7 +155,7 @@ public class TestZKProcedureControllers {
|
||||||
runMockCommitWithOrchestratedControllers(startCohortFirst, operationName, data, "cohort");
|
runMockCommitWithOrchestratedControllers(startCohortFirst, operationName, data, "cohort");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 15000)
|
@Test(timeout = 60000)
|
||||||
public void testZKCoordinatorControllerMultipleCohort() throws Exception {
|
public void testZKCoordinatorControllerMultipleCohort() throws Exception {
|
||||||
final String operationName = "multi member controller test";
|
final String operationName = "multi member controller test";
|
||||||
final byte[] data = new byte[] { 1, 2, 3 };
|
final byte[] data = new byte[] { 1, 2, 3 };
|
||||||
|
|
|
@ -157,13 +157,13 @@ public class TestRegionServerNoMaster {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testCloseByRegionServer() throws Exception {
|
public void testCloseByRegionServer() throws Exception {
|
||||||
closeNoZK();
|
closeNoZK();
|
||||||
reopenRegion();
|
reopenRegion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testCloseByMasterWithoutZNode() throws Exception {
|
public void testCloseByMasterWithoutZNode() throws Exception {
|
||||||
|
|
||||||
// Transition in ZK on. This should fail, as there is no znode
|
// Transition in ZK on. This should fail, as there is no znode
|
||||||
|
@ -181,7 +181,7 @@ public class TestRegionServerNoMaster {
|
||||||
Assert.assertTrue("The close should have failed", getRS().getRegion(regionName).isAvailable());
|
Assert.assertTrue("The close should have failed", getRS().getRegion(regionName).isAvailable());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testOpenCloseByMasterWithZNode() throws Exception {
|
public void testOpenCloseByMasterWithZNode() throws Exception {
|
||||||
|
|
||||||
ZKAssign.createNodeClosing(HTU.getZooKeeperWatcher(), hri, getRS().getServerName());
|
ZKAssign.createNodeClosing(HTU.getZooKeeperWatcher(), hri, getRS().getServerName());
|
||||||
|
@ -208,7 +208,7 @@ public class TestRegionServerNoMaster {
|
||||||
* the region server has received the query or not. Only solution to be efficient: re-ask
|
* the region server has received the query or not. Only solution to be efficient: re-ask
|
||||||
* immediately.
|
* immediately.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testMultipleOpen() throws Exception {
|
public void testMultipleOpen() throws Exception {
|
||||||
|
|
||||||
// We close
|
// We close
|
||||||
|
@ -234,7 +234,7 @@ public class TestRegionServerNoMaster {
|
||||||
checkRegionIsOpened();
|
checkRegionIsOpened();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testMultipleCloseFromMaster() throws Exception {
|
public void testMultipleCloseFromMaster() throws Exception {
|
||||||
|
|
||||||
// As opening, we must support multiple requests on the same region
|
// As opening, we must support multiple requests on the same region
|
||||||
|
@ -264,7 +264,7 @@ public class TestRegionServerNoMaster {
|
||||||
/**
|
/**
|
||||||
* Test that if we do a close while opening it stops the opening.
|
* Test that if we do a close while opening it stops the opening.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testCancelOpeningWithoutZK() throws Exception {
|
public void testCancelOpeningWithoutZK() throws Exception {
|
||||||
// We close
|
// We close
|
||||||
closeNoZK();
|
closeNoZK();
|
||||||
|
@ -307,7 +307,7 @@ public class TestRegionServerNoMaster {
|
||||||
* Test an open then a close with ZK. This is going to mess-up the ZK states, so
|
* Test an open then a close with ZK. This is going to mess-up the ZK states, so
|
||||||
* the opening will fail as well because it doesn't find what it expects in ZK.
|
* the opening will fail as well because it doesn't find what it expects in ZK.
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testCancelOpeningWithZK() throws Exception {
|
public void testCancelOpeningWithZK() throws Exception {
|
||||||
// We close
|
// We close
|
||||||
closeNoZK();
|
closeNoZK();
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class TestSplitTransactionOnCluster {
|
||||||
return regions.get(0).getRegionInfo();
|
return regions.get(0).getRegionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack() throws Exception {
|
public void testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack() throws Exception {
|
||||||
final byte[] tableName = Bytes
|
final byte[] tableName = Bytes
|
||||||
.toBytes("testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack");
|
.toBytes("testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack");
|
||||||
|
@ -591,7 +591,7 @@ public class TestSplitTransactionOnCluster {
|
||||||
testSplitBeforeSettingSplittingInZKInternals();
|
testSplitBeforeSettingSplittingInZKInternals();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 20000)
|
@Test(timeout = 60000)
|
||||||
public void testTableExistsIfTheSpecifiedTableRegionIsSplitParent() throws Exception {
|
public void testTableExistsIfTheSpecifiedTableRegionIsSplitParent() throws Exception {
|
||||||
final byte[] tableName =
|
final byte[] tableName =
|
||||||
Bytes.toBytes("testTableExistsIfTheSpecifiedTableRegionIsSplitParent");
|
Bytes.toBytes("testTableExistsIfTheSpecifiedTableRegionIsSplitParent");
|
||||||
|
|
|
@ -219,7 +219,7 @@ public class TestFlushSnapshotFromClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 15000)
|
@Test(timeout = 60000)
|
||||||
public void testAsyncFlushSnapshot() throws Exception {
|
public void testAsyncFlushSnapshot() throws Exception {
|
||||||
HBaseAdmin admin = UTIL.getHBaseAdmin();
|
HBaseAdmin admin = UTIL.getHBaseAdmin();
|
||||||
SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName("asyncSnapshot")
|
SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName("asyncSnapshot")
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class TestCallQueue {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=3000)
|
@Test(timeout = 60000)
|
||||||
public void testPutTake() throws Exception {
|
public void testPutTake() throws Exception {
|
||||||
ThriftMetrics metrics = createMetrics();
|
ThriftMetrics metrics = createMetrics();
|
||||||
CallQueue callQueue = new CallQueue(
|
CallQueue callQueue = new CallQueue(
|
||||||
|
@ -90,7 +90,7 @@ public class TestCallQueue {
|
||||||
verifyMetrics(metrics, "timeInQueue_num_ops", elementsRemoved);
|
verifyMetrics(metrics, "timeInQueue_num_ops", elementsRemoved);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=3000)
|
@Test(timeout = 60000)
|
||||||
public void testOfferPoll() throws Exception {
|
public void testOfferPoll() throws Exception {
|
||||||
ThriftMetrics metrics = createMetrics();
|
ThriftMetrics metrics = createMetrics();
|
||||||
CallQueue callQueue = new CallQueue(
|
CallQueue callQueue = new CallQueue(
|
||||||
|
|
Loading…
Reference in New Issue