Skip to content

Commit

Permalink
[FLINK-8073][kafka-tests] Disable timeout in tests
Browse files Browse the repository at this point in the history
To get stacktraces in case of deadlock do not timeout tests programatically.

This closes #5718.
  • Loading branch information
pnowojski authored and zentol committed Mar 21, 2018
1 parent e0bc37b commit e273d5f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void before() {
* This test ensures that transactions reusing transactional.ids (after returning to the pool) will not clash
* with previous transactions using same transactional.ids.
*/
@Test(timeout = 120_000L)
@Test
public void testRestoreToCheckpointAfterExceedingProducersPool() throws Exception {
String topic = "flink-kafka-producer-fail-before-notify";

Expand Down Expand Up @@ -123,7 +123,7 @@ public void testRestoreToCheckpointAfterExceedingProducersPool() throws Exceptio
}
}

@Test(timeout = 120_000L)
@Test
public void testFlinkKafkaProducer011FailBeforeNotify() throws Exception {
String topic = "flink-kafka-producer-fail-before-notify";

Expand Down Expand Up @@ -166,7 +166,7 @@ public void testFlinkKafkaProducer011FailBeforeNotify() throws Exception {
deleteTestTopic(topic);
}

@Test(timeout = 120_000L)
@Test
public void testFlinkKafkaProducer011FailTransactionCoordinatorBeforeNotify() throws Exception {
String topic = "flink-kafka-producer-fail-transaction-coordinator-before-notify";

Expand Down Expand Up @@ -221,7 +221,7 @@ public void testFlinkKafkaProducer011FailTransactionCoordinatorBeforeNotify() th
* If such transactions were left alone lingering it consumers would be unable to read committed records
* that were created after this lingering transaction.
*/
@Test(timeout = 120_000L)
@Test
public void testFailBeforeNotifyAndResumeWorkAfterwards() throws Exception {
String topic = "flink-kafka-producer-fail-before-notify";

Expand Down Expand Up @@ -263,7 +263,7 @@ public void testFailBeforeNotifyAndResumeWorkAfterwards() throws Exception {
deleteTestTopic(topic);
}

@Test(timeout = 120_000L)
@Test
public void testFailAndRecoverSameCheckpointTwice() throws Exception {
String topic = "flink-kafka-producer-fail-and-recover-same-checkpoint-twice";

Expand Down Expand Up @@ -316,7 +316,7 @@ public void testFailAndRecoverSameCheckpointTwice() throws Exception {
* If such transactions were left alone lingering it consumers would be unable to read committed records
* that were created after this lingering transaction.
*/
@Test(timeout = 120_000L)
@Test
public void testScaleDownBeforeFirstCheckpoint() throws Exception {
String topic = "scale-down-before-first-checkpoint";

Expand Down Expand Up @@ -381,7 +381,7 @@ public void testScaleDownBeforeFirstCheckpoint() throws Exception {
* new subtask have to generate new id(s), but he can not use ids that are potentially in use, so it has to generate
* new ones that are greater then 4.
*/
@Test(timeout = 120_000L)
@Test
public void testScaleUpAfterScalingDown() throws Exception {
String topic = "scale-down-before-first-checkpoint";

Expand Down

0 comments on commit e273d5f

Please sign in to comment.