Zhanxiang (Patrick) Huang created KAFKA-8668:
------------------------------------------------
Summary: Improve broker shutdown time
Key: KAFKA-8668
URL: https://issues.apache.org/jira/browse/KAFKA-8668
Project: Kafka
Issue Type: Improvement
Reporter: Zhanxiang (Patrick) Huang
Assignee: Zhanxiang (Patrick) Huang
During LogManager shutdown, we need to call {{timeIndex.maybeAppend()}} on
each log segment close. Since in 2.0 we completely skip sanity check and do
lazy mmap on indexes of segments below recovery point, in
{{timeIndex.maybeAppend()}} we may need to mmap the time index file for the
inactive segment if it didn't get mmap before, which is not neccessary becuase
the time index hasn't changed at all.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)