You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Failed or cancelled append compaction rewrite leaves its output files behind #610
Create a fixed-bucket append table with read.preparation-window = 1 and two data files in one bucket.
Run AppendOnlyFileStoreWrite::CompactRewrite() on both files, and make it fail or get cancelled after the rows of the first file were written to the output, e.g. by failing the deletion vector lookup of the second file or cancelling the CancellationController at that point.
List the bucket directory.
What doesn't meet your expectations?
On failure or cancellation, the scope guard in CompactRewrite() calls rewriter->Close(), which completes the current output file and keeps the files already rolled. The rewrite returns an error, so these outputs are never returned to a committer and remain as orphan files.
Expected the guard to call rewriter->Abort(), deleting the open file and the closed ones, and to keep the guard until GetResult() succeeds.
Activity