You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Y Ethan Guo (Jira)" <ji...@apache.org> on 2025/01/27 18:55:00 UTC
[jira] [Commented] (HUDI-8808) Fix concurrent execution of appending rollback blocks in the same file group
[ https://issues.apache.org/jira/browse/HUDI-8808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17921506#comment-17921506 ]
Y Ethan Guo commented on HUDI-8808:
-----------------------------------
Compared to 0.x fix, to adapt the PR to master to handle writer table version of 6 and 8, a handful of things are changed in the tests:
(1) for table 8, log file name for rollback logs is using the requested time of the instant to rollback, instant of the the base instant time (there is no base instant time concept any more as the new file slicing is based on completion time)
(2) the file size of the log blocks to be deleted is set to 1 always, instead of fetching the file size
(3) marker based rollback generates rollback requests with full log file path, instead of relative path or file name only
> Fix concurrent execution of appending rollback blocks in the same file group
> ----------------------------------------------------------------------------
>
> Key: HUDI-8808
> URL: https://issues.apache.org/jira/browse/HUDI-8808
> Project: Apache Hudi
> Issue Type: Sub-task
> Reporter: Y Ethan Guo
> Assignee: Y Ethan Guo
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 1.0.1
>
> Original Estimate: 3h
> Remaining Estimate: 3h
>
> When there are multiple log files generated in the same file group in a inflight deltacommit, rollback of such a deltacommit can fail, because (1) the rollback plan contains multiple rollback requests targeting the log files to roll back in the same file group (2) concurrent execution of these rollback requests in Spark executors cause creation of new rollback log files in parallel, which involves determining the new log version concurrently, leading to the same new log version to be used in multiple executors, causing marker creation to fail (i.e., multiple executors try to create the marker on the same file name, and subsequent marker creation requests fail due to the fact that marker already exists).
> Note that this is for Hudi 0.x format only (backwards compatible writer).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)