zhuzhurk commented on a change in pull request #11655: [FLINK-14162][runtime] 
SchedulerOperations#allocateSlotsAndDeploy always deploys tasks in a bulk
URL: https://github.com/apache/flink/pull/11655#discussion_r405281268
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/strategy/LazyFromSourcesSchedulingStrategyTest.java
 ##########
 @@ -351,9 +354,13 @@ private LazyFromSourcesSchedulingStrategy 
startScheduling(TestingSchedulingTopol
        }
 
        private void assertLatestScheduledVerticesAreEqualTo(final 
List<TestingSchedulingExecutionVertex> expected) {
-               assertEquals(
-                       idsFromVertices(expected),
-                       
idsFromDeploymentOptions(testingSchedulerOperation.getLatestScheduledVertices()));
+               final List<List<ExecutionVertexDeploymentOption>> 
deploymentOptions = testingSchedulerOperation.getScheduledVertices();
+               assertThat(expected.size(), 
Matchers.lessThanOrEqualTo(deploymentOptions.size()));
 
 Review comment:
   OK. I will do it along with rebasing this change.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to