You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ty...@apache.org on 2022/10/17 16:19:04 UTC

[incubator-seatunnel] branch dev updated: [Hotfix][seatunnel-engine-server] Fix convertFlowToActionLifeCycle StackOverflowError (#3121)

This is an automated email from the ASF dual-hosted git repository.

tyrantlucifer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 40f2fb64a [Hotfix][seatunnel-engine-server] Fix convertFlowToActionLifeCycle StackOverflowError (#3121)
40f2fb64a is described below

commit 40f2fb64a68cb95f173b884916c5b4f38114915d
Author: hailin0 <wa...@apache.org>
AuthorDate: Tue Oct 18 00:18:57 2022 +0800

    [Hotfix][seatunnel-engine-server] Fix convertFlowToActionLifeCycle StackOverflowError (#3121)
---
 .../java/org/apache/seatunnel/engine/server/task/SeaTunnelTask.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/SeaTunnelTask.java b/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/SeaTunnelTask.java
index 437ecd74b..b76bf208a 100644
--- a/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/SeaTunnelTask.java
+++ b/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/SeaTunnelTask.java
@@ -181,7 +181,7 @@ public abstract class SeaTunnelTask extends AbstractTask {
         FlowLifeCycle lifeCycle;
         List<OneInputFlowLifeCycle<Record<?>>> flowLifeCycles = new ArrayList<>();
         if (!flow.getNext().isEmpty()) {
-            for (Flow f : executionFlow.getNext()) {
+            for (Flow f : flow.getNext()) {
                 flowLifeCycles.add((OneInputFlowLifeCycle<Record<?>>) convertFlowToActionLifeCycle(f));
             }
         }
@@ -203,7 +203,7 @@ public abstract class SeaTunnelTask extends AbstractTask {
                         new SeaTunnelTransformCollector(flowLifeCycles), completableFuture);
             } else if (f.getAction() instanceof PartitionTransformAction) {
                 // TODO use index and taskID to create ringbuffer list
-                if (executionFlow.getNext().isEmpty()) {
+                if (flow.getNext().isEmpty()) {
                     lifeCycle = new PartitionTransformSinkFlowLifeCycle(this, completableFuture);
                 } else {
                     lifeCycle = new PartitionTransformSourceFlowLifeCycle(this, completableFuture);