DanielLeens commented on issue #13453:
URL: https://github.com/apache/seatunnel/issues/13453#issuecomment-7191773728

   Classification: A / Connector-V2 Hive overwrite commit coordination.
   
   The additional runs and commit logs are strong evidence of data loss: both 
parallel runs read and wrote 172,742,553 rows, but the target partition 
retained a different subset each time, while the parallelism-1 control retained 
all rows. The logged publish-then-delete sequence directly matches the missing 
rows.
   
   I also checked latest `dev` at `c0c6d04ca517f7fe039fb1994604a3643a3e59ec`. 
`HiveSinkAggregatedCommitter` keeps `deletedTargetDirectories` in an 
instance-local set; its guard therefore cannot coordinate independent 
committers that target the same partition or table directory. This remains a 
current source-level defect. The existing streaming checkpoint guard does not 
establish job-wide mutual exclusion for the reported Flink batch path.
   
   Please keep the fix focused on making each logical target directory's 
overwrite cleanup happen exactly once before any committer can publish into it. 
A per-instance concurrent set is not sufficient. The implementation and 
regression coverage must cover partitioned and non-partitioned tables, 
retry/restore and failed-commit paths, and the streaming behavior tracked by 
#10280. Add a Flink integration regression with parallel writers and exact 
final-row assertions, alongside the one-writer control; the unfixed 
implementation must be able to reproduce the publish-then-delete ordering. Do 
not use a timing delay or best-effort cleanup as a workaround.


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