hawk9821 opened a new pull request, #9665:
URL: https://github.com/apache/seatunnel/pull/9665

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code 
changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
     - Make sure that the pull request corresponds to a [GITHUB 
issue](https://github.com/apache/seatunnel/issues).
     - Name the pull request in the form "[Feature] [component] Title of the 
pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix 
typo in README.md doc`.
   -->
   
   ### Purpose of this pull request
   repeated commit cause task exceptions when restore from checkpoint in paimon 
task. 
   
   savepoint process :  
    * step1. serialize the state to local   
    * step2. commit the state
    
   restore process:
    *  step1.  deserialize the state from local file
    *  step2.  commit the state
   
   When `step2 of the savepoint process` succeeds, the repeated submission of 
`step2 in the restore job` throws an exception and the task exits.
   ```
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
java.lang.RuntimeException: File deletion conflicts detected! Give up 
committing.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Don't panic!
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Conflicts during commits are normal and this failure is intended to resolve the 
conflicts.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Conflicts are mainly caused by the following scenarios:
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 1. 
Multiple jobs are writing into the same partition at the same time, or you use 
STATEMENT SET to execute multiple INSERT statements into the same Paimon table.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:    
You'll probably see different base commit user and current commit user below.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:    
You can use 
https://paimon.apache.org/docs/master/maintenance/dedicated-compaction#dedicated-compaction-job
 to support multiple writing.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 2. 
You're recovering from an old savepoint, or you're creating multiple jobs from 
a savepoint.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:    
The job will fail continuously in this scenario to protect metadata from 
corruption.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDOUT: 
[8949219017735335991] 2025-08-05 11:12:18,986 INFO  
org.apache.seatunnel.api.sink.multitablesink.MultiTableSinkWriter - init multi 
table sink writer, queue size: 1
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:    
You can either recover from the latest savepoint, or you can revert the table 
to the snapshot corresponding to the old savepoint.
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Base commit user is: dd52504a-9c42-451a-a035-02e091307c3a; Current commit user 
is: d6f5e340-c66d-49d7-ba8d-0a6af5fe33b5
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Base entries are:
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=4, 
level=0, fileName=data-2593dd91-d35a-4013-904d-0a0742f4191e-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@dfacb5f1, 
maxKey=org.apache.paimon.data.BinaryRow@6f3ed396, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=4, 
level=0, fileName=data-2593dd91-d35a-4013-904d-0a0742f4191e-1.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@ec9064de, 
maxKey=org.apache.paimon.data.BinaryRow@2d99e697, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=4, 
level=0, fileName=data-e6510d9e-9af5-41f3-971c-f2623b8c925a-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@2d99e697, 
maxKey=org.apache.paimon.data.BinaryRow@1dd4c70e, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=4, 
level=0, fileName=data-46c9959e-786c-4395-8f8e-12340381d2e9-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@58b0535c, 
maxKey=org.apache.paimon.data.BinaryRow@58b0535c, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=5, fileName=data-52776f55-19a4-4596-a1ce-9f8685394576-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@89fba125, 
maxKey=org.apache.paimon.data.BinaryRow@a3c9fbe7, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=5, fileName=data-21c2cf99-4600-410f-8074-2376842e6a85-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@4b1a2337, 
maxKey=org.apache.paimon.data.BinaryRow@c8b1eb4, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=5, fileName=data-4d4f3189-0548-4a7c-826e-8e5273a932f2-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@af534502, 
maxKey=org.apache.paimon.data.BinaryRow@1853dc50, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=5, fileName=data-09e88d85-43da-44ca-a813-00bb8e3d525f-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@b0db094a, 
maxKey=org.apache.paimon.data.BinaryRow@a1a8ed70, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Changes are:
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=0, fileName=data-5ae74afe-e93e-4db2-a22b-ec32724e85f4-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@89fba125, 
maxKey=org.apache.paimon.data.BinaryRow@89fba125, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=0, fileName=data-5ae74afe-e93e-4db2-a22b-ec32724e85f4-1.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@26985dc0, 
maxKey=org.apache.paimon.data.BinaryRow@912ecf17, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=0, fileName=data-f2c71d58-f3e5-438a-85a9-a4e007ca229a-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@c730df2e, 
maxKey=org.apache.paimon.data.BinaryRow@90c9c338, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=0, fileName=data-e21604b9-ee26-4066-b1aa-d17be4a26f54-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@26985dc0, 
maxKey=org.apache.paimon.data.BinaryRow@4956887d, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=0, fileName=data-2becabb0-abd5-4510-be71-fd3cd0538345-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@6163a3bf, 
maxKey=org.apache.paimon.data.BinaryRow@a3c9fbe7, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, 
level=5, fileName=data-52776f55-19a4-4596-a1ce-9f8685394576-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@89fba125, 
maxKey=org.apache.paimon.data.BinaryRow@a3c9fbe7, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=0, fileName=data-1727e4df-7eed-4fae-b6ee-0943d96d7231-1.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@7e025d0a, 
maxKey=org.apache.paimon.data.BinaryRow@6e990cbf, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=0, fileName=data-f93ac8f3-5ab8-4457-a5f8-10cccbbc98e3-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@4b1a2337, 
maxKey=org.apache.paimon.data.BinaryRow@4b1a2337, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=0, fileName=data-0d92da45-2a92-40aa-ae45-8a99e9bab6ce-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@a0c0c097, 
maxKey=org.apache.paimon.data.BinaryRow@a0c0c097, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=0, fileName=data-1727e4df-7eed-4fae-b6ee-0943d96d7231-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@7e025d0a, 
maxKey=org.apache.paimon.data.BinaryRow@7e025d0a, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=0, fileName=data-d4b16677-8cb5-4d57-b321-dbeb8512de67-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@6e990cbf, 
maxKey=org.apache.paimon.data.BinaryRow@c8b1eb4, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=1, 
level=5, fileName=data-21c2cf99-4600-410f-8074-2376842e6a85-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@4b1a2337, 
maxKey=org.apache.paimon.data.BinaryRow@c8b1eb4, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=0, fileName=data-53d2dba3-62e6-4afb-83d7-52edbb1c8deb-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@af534502, 
maxKey=org.apache.paimon.data.BinaryRow@47791d15, externalPath=null}
   [] 2025-08-05 19:12:18,998 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=0, fileName=data-53d2dba3-62e6-4afb-83d7-52edbb1c8deb-1.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@af534502, 
maxKey=org.apache.paimon.data.BinaryRow@e1e383e, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=0, fileName=data-d749957c-8d65-43f5-8883-4d00e14f83ae-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@6a2ddf4e, 
maxKey=org.apache.paimon.data.BinaryRow@6a2ddf4e, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=0, fileName=data-1886c467-2463-435d-a0ff-242d2a475c6c-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@b6e6e602, 
maxKey=org.apache.paimon.data.BinaryRow@2ea9cff, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=0, fileName=data-f85e0e3a-0b6f-4919-9ca1-52b03c14d7b6-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@1853dc50, 
maxKey=org.apache.paimon.data.BinaryRow@1853dc50, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=2, 
level=5, fileName=data-4d4f3189-0548-4a7c-826e-8e5273a932f2-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@af534502, 
maxKey=org.apache.paimon.data.BinaryRow@1853dc50, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=0, fileName=data-6bd42ab0-b3e8-40b4-8fef-0af4cfb9ea68-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@b0db094a, 
maxKey=org.apache.paimon.data.BinaryRow@b0db094a, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=0, fileName=data-6bd42ab0-b3e8-40b4-8fef-0af4cfb9ea68-1.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@1909a1e4, 
maxKey=org.apache.paimon.data.BinaryRow@9614fcf1, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=0, fileName=data-add6291e-afc9-40e9-a37d-ab9e382a87f2-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@e03ea962, 
maxKey=org.apache.paimon.data.BinaryRow@28a2140b, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=0, fileName=data-b75e709d-3e2d-4fa8-ad74-0a5d2f1c39e4-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@fbc59803, 
maxKey=org.apache.paimon.data.BinaryRow@fbc59803, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=DELETE, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=0, fileName=data-0aa86945-1552-477c-808a-3b9c8eefb646-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@a1a8ed70, 
maxKey=org.apache.paimon.data.BinaryRow@a1a8ed70, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
{kind=ADD, partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=3, 
level=5, fileName=data-09e88d85-43da-44ca-a813-00bb8e3d525f-0.orc, 
extraFiles=[], minKey=org.apache.paimon.data.BinaryRow@b0db094a, 
maxKey=org.apache.paimon.data.BinaryRow@a1a8ed70, externalPath=null}
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.operation.FileStoreCommitImpl.createConflictException(FileStoreCommitImpl.java:1370)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.operation.FileStoreCommitImpl.lambda$noConflictsOrFail$16(FileStoreCommitImpl.java:1226)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.operation.FileStoreCommitImpl.noConflictsOrFail(FileStoreCommitImpl.java:1242)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.operation.FileStoreCommitImpl.commit(FileStoreCommitImpl.java:348)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.table.sink.TableCommitImpl.commitMultiple(TableCommitImpl.java:218)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.table.sink.TableCommitImpl.filterAndCommitMultiple(TableCommitImpl.java:257)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.table.sink.TableCommitImpl.filterAndCommitMultiple(TableCommitImpl.java:243)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.table.sink.TableCommitImpl.filterAndCommit(TableCommitImpl.java:196)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.connectors.seatunnel.paimon.sink.PaimonSinkWriter.<init>(PaimonSinkWriter.java:217)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.connectors.seatunnel.paimon.sink.PaimonSink.restoreWriter(PaimonSink.java:129)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.api.sink.multitablesink.MultiTableSink.restoreWriter(MultiTableSink.java:115)
 ~[seatunnel-starter.jar:2.3.12-SNAPSHOT]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.engine.server.task.flow.SinkFlowLifeCycle.restoreState(SinkFlowLifeCycle.java:345)
 ~[seatunnel-starter.jar:2.3.12-SNAPSHOT]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.engine.server.task.SeaTunnelTask.lambda$restoreState$16(SeaTunnelTask.java:401)
 ~[seatunnel-starter.jar:2.3.12-SNAPSHOT]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
 ~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.engine.server.task.SeaTunnelTask.restoreState(SeaTunnelTask.java:398)
 ~[seatunnel-starter.jar:2.3.12-SNAPSHOT]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.seatunnel.engine.server.checkpoint.operation.NotifyTaskRestoreOperation.lambda$null$0(NotifyTaskRestoreOperation.java:107)
 ~[seatunnel-starter.jar:2.3.12-SNAPSHOT]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
 ~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at org.apache.seatunnel.api.tracing.MDCRunnable.run(MDCRunnable.java:43) 
~[seatunnel-starter.jar:2.3.12-SNAPSHOT]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_342]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR: 
Caused by: java.lang.IllegalStateException: Trying to add file 
{partition=org.apache.paimon.data.BinaryRow@9c67b85d, bucket=0, level=5, 
fileName=data-52776f55-19a4-4596-a1ce-9f8685394576-0.orc, extraFiles=[], 
embeddedIndex=null, externalPath=null} which is already added.
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at org.apache.paimon.utils.Preconditions.checkState(Preconditions.java:204) 
~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at org.apache.paimon.manifest.FileEntry.mergeEntries(FileEntry.java:191) ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at org.apache.paimon.manifest.FileEntry.mergeEntries(FileEntry.java:173) ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
at 
org.apache.paimon.operation.FileStoreCommitImpl.noConflictsOrFail(FileStoreCommitImpl.java:1240)
 ~[?:?]
   [] 2025-08-05 19:12:18,999 INFO  tc.seatunnel-engine:openjdk:8 - STDERR:     
... 27 more
   ```
   
   
   <!-- Describe the purpose of this pull request. For example: This pull 
request adds checkstyle plugin.-->
   
   
   ### Does this PR introduce _any_ user-facing change?
   no
   <!--
   Note that it means *any* user-facing change including all aspects such as 
the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes 
- provide the console output, description and/or an example to show the 
behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to 
the released SeaTunnel versions or within the unreleased branches such as dev.
   If no, write 'No'.
   If you are adding/modifying connector documents, please follow our new 
specifications: https://github.com/apache/seatunnel/issues/4544.
   -->
   
   
   ### How was this patch tested?
   
PaimonSinkWithSchemaEvolutionIT#testMysqlCdcSinkPaimonWithSchemaChangeAndRestore
   
   <!--
   If tests were added, say they were added here. Please make sure to add some 
test cases that check the changes thoroughly including negative and positive 
cases if possible.
   If it was tested in a way different from regular unit tests, please clarify 
how you tested step by step, ideally copy and paste-able, so that other 
reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why 
it was difficult to add.
   If you are adding E2E test cases, maybe refer to 
https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/resources/mysqlcdc_to_mysql.conf,
 here is a good example.
   -->
   
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License 
Notice according
     [New License 
Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new 
feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the 
following files are updated:
     1. Update 
[plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties)
 and add new connector information in it
     2. Update the pom file of 
[seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     3. Add ci label in 
[label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     4. Add e2e testcase in 
[seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     5. Update connector 
[plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)


-- 
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]

Reply via email to