prathik-onehouse opened a new issue, #20873:
URL: https://github.com/apache/hudi/issues/20873

   When the timeline archiver deletes archived instants from the active 
timeline, it first deletes every requested and inflight file in the batch in 
parallel, then deletes the completed files one at a time, oldest first. If one 
completed delete fails, the loop stops, and every newer archived instant is 
left with only its completed file.
   
   That state breaks readers of a completed instant's requested file. For a 
completed replacecommit, `ClusteringUtils.isClusteringInstant` reads the 
missing `.requested` and throws `Failed to check emptiness of instant`, so 
every commit that runs the OCC schema conflict check fails until the timeline 
is repaired by hand. Any delete failure triggers it: a transient storage error, 
a permissions error, or an entry under the timeline path that is a directory 
named like an instant.
   
   Both `TimelineArchiverV1` and `TimelineArchiverV2` have this two-pass 
delete. Proposed fix: delete one archived action at a time, oldest first, 
removing its requested, inflight and completed files before moving to the next 
action, so a failure leaves every newer action intact while keeping the 
oldest-first order that prevents timeline holes.
   


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

  • [I] Timeline archiver leaves new... prathik-onehouse (via GitHub) via commits

Reply via email to