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

   @wuhainan Thanks for the extra runs. Your comment did not ask a question, so 
here is where this stands on my side.
   
   **What your data settles**
   - I previously treated the "multiple committers each clear the same 
directory" mechanism as unconfirmed, since it rested on code inspection. Your 
results confirm it.
   - Both parallel runs read and wrote 172,742,553 rows, yet the partition kept 
27,035,174 rows in one and 52,032,175 in the other. The parallelism-1 control 
kept all of them.
   - The log excerpt shows the ordering directly: Committer (10/10) finishes 
its rename into `<TARGET_PARTITION>`, then Committer (1/10) and later Committer 
(2/10) each log `Deleted partition directory` for that same directory before 
publishing their own file.
   - YARN reported `SUCCEEDED` for all three runs, so this is silent data loss.
   
   **State of the code**
   - A check of latest `dev` at c0c6d04ca517f7fe039fb1994604a3643a3e59ec shows 
the defect is still present.
   - `HiveSinkAggregatedCommitter` keeps `deletedTargetDirectories` in an 
instance-local set, so the guard cannot coordinate independent committers that 
target the same partition or table directory.
   
   **What is left**
   - No fix exists yet.
   - The fix needs to make the overwrite cleanup for each logical target 
directory happen exactly once, before any committer can publish into it. A 
per-instance set, a timing delay, or best-effort cleanup is not enough.
   - It should cover both partitioned and non-partitioned tables, plus the 
retry/restore and failed-commit paths.
   - It should come with a Flink integration regression that uses parallel 
writers and asserts the exact final row count, alongside the one-writer control.
   
   Until then, your control run suggests keeping Hive sink parallelism at 1 for 
`DROP_DATA` jobs as the safe configuration.
   
   **What I still need from you**
   1. The Hive Metastore server version, once you have verified it.
   2. Whether the latest parallel rerun (27,035,174 rows) also shows all 10 
committers logging `Deleted partition directory` for the same directory. You 
confirmed this only for the earlier rerun.
   3. A Zeta run of the same job with sink parallelism 10, if you are able to 
do one, so we know whether this is limited to the Flink batch path.
   
   If you would like to work on the fix yourself, please say so and I will help 
review it.
   
   <!-- streview-comment:2625 -->


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