You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by li...@apache.org on 2023/07/27 01:37:59 UTC

[seatunnel] branch dev updated: [Fix][Zeta] Fix SinkFlowLifeCycle without init lastCommitInfo (#5152)

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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 3e9b9f5849 [Fix][Zeta] Fix SinkFlowLifeCycle without init lastCommitInfo (#5152)
3e9b9f5849 is described below

commit 3e9b9f5849a1829ec404fee081fc6ee43f2aa9fc
Author: Jia Fan <fa...@qq.com>
AuthorDate: Thu Jul 27 09:37:54 2023 +0800

    [Fix][Zeta] Fix SinkFlowLifeCycle without init lastCommitInfo (#5152)
---
 .../org/apache/seatunnel/engine/server/task/flow/SinkFlowLifeCycle.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SinkFlowLifeCycle.java b/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SinkFlowLifeCycle.java
index fe1e5c5a89..9e67a601eb 100644
--- a/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SinkFlowLifeCycle.java
+++ b/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SinkFlowLifeCycle.java
@@ -109,6 +109,7 @@ public class SinkFlowLifeCycle<T, CommitInfoT extends Serializable, AggregatedCo
     public void init() throws Exception {
         this.writerStateSerializer = sinkAction.getSink().getWriterStateSerializer();
         this.committer = sinkAction.getSink().createCommitter();
+        this.lastCommitInfo = Optional.empty();
     }
 
     @Override