shihchengwei-lab commented on PR #24292:
URL: https://github.com/apache/kafka/pull/24292#issuecomment-7008198647

   If `init()` fails after evicting an entry but before its delayed deletion 
runs, what closes that entry’s indexes? `shutdown()` cancels the pending 
deletion, and the evicted entry is already absent from the map the catch block 
walks. I haven’t tested this sequence. [Shutdown 
policy](https://github.com/apache/kafka/blob/fa699122a4aee3308b4f0f6b3b67e8302419cda8/server-common/src/main/java/org/apache/kafka/server/util/KafkaScheduler.java#L116-L120)
 · [Constructor 
cleanup](https://github.com/apache/kafka/blob/fa699122a4aee3308b4f0f6b3b67e8302419cda8/storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java#L156-L164)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to