Skip to content

Commit

Permalink
[FLINK-22980][tests] Set parallelism on job vertex required by adapti…
Browse files Browse the repository at this point in the history
…ve scheduler
  • Loading branch information
Fabian Paul authored and rmetzger committed Jun 18, 2021
1 parent c056a95 commit 465fc66
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ public void testPutSuspendedJobOnClusterShutdown() throws Exception {
new PersistingMiniCluster(new MiniClusterConfiguration.Builder().build())) {
miniCluster.start();
final JobVertex vertex = new JobVertex("blockingVertex");
// The adaptive scheduler expects that every vertex has a configured parallelism
vertex.setParallelism(1);
vertex.setInvokableClass(SignallingBlockingNoOpInvokable.class);
final JobGraph jobGraph = JobGraphTestUtils.streamingJobGraph(vertex);
miniCluster.submitJob(jobGraph);
Expand Down

0 comments on commit 465fc66

Please sign in to comment.