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] AppendOnlyWriter::Close() skips its cleanup when the compaction sync or the compact manager close fails #609
Create an AppendOnlyWriter whose compact manager returns an error from GetCompactionResult() or Close(), e.g. an I/O error while syncing a finished compaction.
Leave uncommitted compaction outputs in the writer, then call Close().
What doesn't meet your expectations?
Close() returns at the first failing step (PAIMON_RETURN_NOT_OK(Sync()), then compact_manager_->Close()), so it skips deleting the compaction outputs in compact_after_, aborting the open data file writer and cleaning the compact deletion file. These files are left behind uncommitted.
Expected every cleanup step to run even if an earlier one fails, returning the first error, as Paimon Java does with IOUtils.closeAll(...) in AppendOnlyWriter#close, and the compaction task to be waited for even when the sync fails.
Activity