THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Log recovery is a process when a broker start up, if it has previous unclean shutdown, it'll be triggered to make sure the log is in a good state and not get corrupted. The process of log recovery is as below (producer snapshot and other steps are skipped here):
- iterate all dirs in "log.dirs" config one by one
- find out the topic partition log folder under the dir
- Iterate all the topic partition log folders and add them as jobs to thread pool with the "num.recovery.threads.per.data.dir" config number of threads
- load all the segments under log folder, suppose there are 10 segments
- filter out the segments after "recovery checkpoint", suppose there are 5 segments needed to be recovered
- recover the 5 segments, one by one
- iterate all the record batches inside the segment
- validate all the batches
- rebuilt the indexes.
...