Skip to content

Commit 937ba08

Browse files
committed
Fix the 3rd test
Signed-off-by: david_radley@uk.ibm.com <david_radley@uk.ibm.com>
1 parent 9ad49b0 commit 937ba08

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/slowtaskdetector/ExecutionTimeBasedSlowTaskDetectorTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,13 @@ private ExecutionGraph createExecutionGraph(JobVertex... jobVertices) throws Exc
480480
(jobId, newJobStatus, timestamp) -> {
481481
if (newJobStatus == JobStatus.RUNNING) {
482482
// Only complete the future when all vertices are in RUNNING state
483-
long runningCount =
484-
executionGraph.getAllExecutionVertices().stream()
485-
.filter(
486-
v ->
487-
v.getCurrentExecutionAttempt().getState()
488-
== ExecutionState.RUNNING)
489-
.count();
483+
long runningCount = 0;
484+
for (ExecutionVertex vertex : executionGraph.getAllExecutionVertices()) {
485+
if (vertex.getCurrentExecutionAttempt().getState()
486+
== ExecutionState.RUNNING) {
487+
runningCount++;
488+
}
489+
}
490490
if (runningCount >= expectedVertexCount) {
491491
allVerticesRunningFuture.complete(null);
492492
}

0 commit comments

Comments
 (0)