kafka/core
Gaurav Narula 8433ac4d31
CI / build (push) Has been cancelled Details
KAFKA-19221 Propagate IOException on LogSegment#close (#20072)
Log segment closure results in right sizing the segment on disk along
with the associated index files.

This is specially important for TimeIndexes where a failure to right
size may eventually cause log roll failures leading to under replication
and log cleaner failures.

This change uses `Utils.closeAll` which propagates exceptions, resulting
in an "unclean" shutdown. That would then cause the broker to attempt to
recover the log segment and the index on next startup, thereby avoiding
the failures described above.

Reviewers: Omnia Ibrahim <o.g.h.ibrahim@gmail.com>, Jun Rao
 <junrao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
2025-07-06 03:05:34 +08:00
..
src KAFKA-19221 Propagate IOException on LogSegment#close (#20072) 2025-07-06 03:05:34 +08:00
.gitignore