[
https://issues.apache.org/jira/browse/KAFKA-15157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Divij Vaidya resolved KAFKA-15157.
----------------------------------
Resolution: Fixed
> Print startup time for RemoteIndexCache
> ---------------------------------------
>
> Key: KAFKA-15157
> URL: https://issues.apache.org/jira/browse/KAFKA-15157
> Project: Kafka
> Issue Type: Sub-task
> Reporter: Divij Vaidya
> Assignee: Lan Ding
> Priority: Major
> Fix For: 3.6.0
>
>
> When RemoteIndexCache starts up, it will try to re-build the in-memory cache
> using the files already present on the disk in the remote-index-cache
> directory. The process involves:
> 1. deleting existing files which are pending delete i.e. have a .delete suffix
> 2. read the cached index files, if present.
> 3. creating the indexes (this step will create a MMapped'buffer)
> 4. perform sanity check on the indexes
> 5. add to internal cache
> The steps 2-5 are bound by the maximum number of entries in the cache. But
> step 1 could be arbitrary large.
> To debug a slow cache startup, we should add a info statement that prints the
> time it took to initialize the cache.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)