Skip to content

[Bug][Compaction] The data files are not deleted after compaction failed. #4963

@morningman

Description

@morningman

Describe the bug
When the compaction fails, the new data files generated are not cleaned up,
resulting in a large number of files remaining on the disk.

The reason of compaction failure is because the number of filtered rows is wrong, so that
the validation after compaction will fail. log like this:

row_num does not match between cumulative input and output! input_row_num=4, merged_row_num=0, filtered_row_num=0, output_row_num=0
failed to init base compaction. res=-224, table=10209.1604932729.e643691394eb8627-841daf125e14c3a0

Version 0.13.11

Metadata

Metadata

Assignees

Labels

area/compactIssues or PRs related to the compactkind/fixCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions