Skip to content

Commit

Permalink
[FLINK-14246][runtime] Annotate all other MiniCluster tests in flink-…
Browse files Browse the repository at this point in the history
…runtime with AlsoRunWithSchedulerNG

This closes apache#9901.
  • Loading branch information
zhuzhurk authored and GJL committed Oct 15, 2019
1 parent eee2988 commit dafc619
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

/**
* Test for consuming a pipelined result only partially.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class PartialConsumePipelinedResultTest extends TestLogger {

// Test configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@
import org.apache.flink.runtime.testtasks.NoOpInvokable;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.TestLogger;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;

import javax.annotation.Nonnull;
Expand All @@ -69,6 +71,7 @@
* Small test to check that the {@link org.apache.flink.runtime.blob.BlobServer} cleanup is executed
* after job termination.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class BlobsCleanupITCase extends TestLogger {

private static final long RETRY_INTERVAL = 100L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.types.IntValue;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.BitSet;

Expand All @@ -46,6 +48,7 @@
* of slots. This effectively tests that Flink can execute jobs with blocking results
* in a staged fashion.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class SlotCountExceedingParallelismTest extends TestLogger {

// Test configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.types.IntValue;
import org.apache.flink.util.TestLogger;

import org.apache.flink.shaded.guava18.com.google.common.collect.Lists;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.List;

Expand All @@ -48,6 +50,7 @@
* Tests for the lazy scheduling/updating of consumers depending on the
* producers result.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class ScheduleOrUpdateConsumersTest extends TestLogger {

private static final int NUMBER_OF_TMS = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
import org.apache.flink.runtime.jobmanager.scheduler.SlotSharingGroup;
import org.apache.flink.runtime.minicluster.TestingMiniCluster;
import org.apache.flink.runtime.minicluster.TestingMiniClusterConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.util.TestLogger;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.concurrent.CompletableFuture;

Expand All @@ -37,6 +39,7 @@
/**
* Integration tests for job scheduling.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class JobExecutionITCase extends TestLogger {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
import org.apache.flink.runtime.minicluster.MiniCluster;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.util.FlinkRuntimeException;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.io.IOException;
import java.util.concurrent.CompletableFuture;
Expand All @@ -44,6 +46,7 @@
/**
* Tests for the recovery of task failures.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class JobRecoveryITCase extends TestLogger {

private static final int NUM_TMS = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.CommonTestUtils;
import org.apache.flink.runtime.util.LeaderRetrievalUtils;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.TestLogger;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.time.Duration;
import java.util.concurrent.CompletableFuture;
Expand All @@ -53,6 +55,7 @@
/**
* Tests which verify the cluster behaviour in case of leader changes.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class LeaderChangeClusterComponentsTest extends TestLogger {

private static final Duration TESTING_TIMEOUT = Duration.ofMinutes(2L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
import org.apache.flink.types.LongValue;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.time.Duration;
import java.util.Arrays;
Expand All @@ -55,6 +57,7 @@
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

@Category(AlsoRunWithSchedulerNG.class)
public class TaskCancelAsyncProducerConsumerITCase extends TestLogger {

// The Exceptions thrown by the producer/consumer Threads
Expand Down

0 comments on commit dafc619

Please sign in to comment.