You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ju...@apache.org on 2025/02/20 04:54:26 UTC
(flink) branch master updated: [hotfix][runtime] Remove the redundant JobVertex#hasNoConnectedInputs and use JobVertex#isInputVertex instead.
This is an automated email from the ASF dual-hosted git repository.
junrui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new aa2281387ce [hotfix][runtime] Remove the redundant JobVertex#hasNoConnectedInputs and use JobVertex#isInputVertex instead.
aa2281387ce is described below
commit aa2281387ce89a805d447012027caa6a7766ba1d
Author: Roc Marshal <fl...@126.com>
AuthorDate: Sun Jan 26 16:03:05 2025 +0800
[hotfix][runtime] Remove the redundant JobVertex#hasNoConnectedInputs and use JobVertex#isInputVertex instead.
---
.../src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java | 2 +-
.../src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java b/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java
index 9b862553252..551168ea4ef 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java
@@ -466,7 +466,7 @@ public class JobGraph implements ExecutionPlan {
while (iter.hasNext()) {
JobVertex vertex = iter.next();
- if (vertex.hasNoConnectedInputs()) {
+ if (vertex.isInputVertex()) {
sorted.add(vertex);
iter.remove();
}
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java b/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java
index e2e3beb9270..022b3ca9775 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java
@@ -579,10 +579,6 @@ public class JobVertex implements java.io.Serializable {
return this.results.isEmpty();
}
- public boolean hasNoConnectedInputs() {
- return inputs.isEmpty();
- }
-
public void setSupportsConcurrentExecutionAttempts(
boolean supportsConcurrentExecutionAttempts) {
this.supportsConcurrentExecutionAttempts = supportsConcurrentExecutionAttempts;