You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by zhang meng <yz...@hotmail.com> on 2022/10/13 11:25:36 UTC
in case of disk failure,why not recover from middle position of the log file
can we write the byte position of .log 、.index file to a position-checkpoint file, and recover from the position to rebuild the index files?
Re: in case of disk failure,why not recover from middle position of the log file
Posted by Luke Chen <sh...@gmail.com>.
Hi Zhang,
Yes, when doing log recovery, we'll start from the checkpoint for the
partition in `recovery-point-offset-checkpoint` file, which will be updated
at runtime. Is that what you expected?
Check LogManager#loadLogs method for more implementation detail.
Thanks.
Luke
On Thu, Oct 13, 2022 at 7:26 PM zhang meng <yz...@hotmail.com> wrote:
> can we write the byte position of .log 、.index file to a
> position-checkpoint file, and recover from the position to rebuild the
> index files?
>