Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
0.10.1.1
-
None
-
None
-
None
-
Linux, Windows
Description
Unexpected behavior occurs when a topic is configured to preallocate files and has a retention policy of compact.
When log compaction runs, the cleaner attempts to gather groups of segments to consolidate based on the max segment size.
When preallocation is enabled all segments are that size and thus each individual segment is considered for compaction.
When compaction does occur, the resulting cleaned file is sized based on that same configuration. This means that you can have very large files on disk that contain little or no data which partly defeats the point of compacting.
The log cleaner should trim these segments to free up disk space. That way they would free up disk space and be able to be further compacted on subsequent runs.
Attachments
Issue Links
- duplicates
-
KAFKA-5431 LogCleaner stopped due to org.apache.kafka.common.errors.CorruptRecordException
- Resolved