goutamadwant opened a new issue, #13194: URL: https://github.com/apache/seatunnel/issues/13194
### Search before asking - [x] I had searched in the issues and found no similar issues. ### What happened `DAGUtils.getJobDAGInfo(..., isPhysicalDAGInfo = false, ...)` fails with `NoSuchElementException` for any job that has an edge. The logical branch maps each edge to a pipeline with `p.getActions().containsKey(info.getAction().getId())` ([DAGUtils.java#L165-L183](https://github.com/apache/seatunnel/blob/b7ef4936fec4ee847f2d785582ed03a031cc629a/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/DAGUtils.java#L165-L183)). `Pipeline.getActions()` is keyed by `ActionStateKey` ([Pipeline.java#L54-L59](https://github.com/apache/seatunnel/blob/b7ef4936fec4ee847f2d785582ed03a031cc629a/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/execution/Pipeline.java#L54-L59)), so the `Long` lookup never matches and `.findFirst().get()` throws. The logical flavour was added in #3797 and broke when #4254 changed `Pipeline.getActions()` to `ActionStateKey` keys. It went unnoticed because `JobMaster`, `CoordinatorService` and `BaseService` all request the physical flavour. Found while adding lineage tests for STIP-39 (#12268, #12619). A fix has to map edges correctly when transforms are chained into one execution vertex and when a union split recreates vertices in several pipelines, without changing the physical plan. ### SeaTunnel Version dev (`b7ef4936`) ### SeaTunnel Config `seatunnel-engine/seatunnel-engine-server/src/test/resources/batch_fake_to_console.conf` (FakeSource → Console). ### Running Command Unit-level call (no CLI path reaches it): ```java LogicalDag dag = TestUtils.createTestLogicalPlan("batch_fake_to_console.conf", "repro", 1L); JobImmutableInformation info = new JobImmutableInformation(1L, "repro", new DefaultSerializationServiceBuilder().build(), dag, Collections.emptyList(), Collections.emptyList()); DAGUtils.getJobDAGInfo(dag, info, new EngineConfig(), false, new ExecutionAddress("localhost", 5801), new HashSet<>()); ``` ### Error Exception ``` java.util.NoSuchElementException: No value present at java.base/java.util.Optional.get(Optional.java:148) at org.apache.seatunnel.engine.server.dag.DAGUtils.lambda$getJobDAGInfo$6(DAGUtils.java:181) at java.base/java.util.stream.Collectors.lambda$groupingBy$53(Collectors.java:1134) ... at org.apache.seatunnel.engine.server.dag.DAGUtils.getJobDAGInfo(DAGUtils.java:165) ``` ### Zeta or Flink or Spark Version Zeta (dev) ### Java or Scala Version JDK 11 ### Screenshots _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's Code of Conduct -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
