nandini12396 opened a new pull request, #21088:
URL: https://github.com/apache/kafka/pull/21088

   When the index cache is full and evicts entries, there's a race:
   
   1. Entry marked for cleanup (markedForCleanup=true)
   2. Index files renamed to .deleted
   3. Entry may still be in Caffeine cache (async eviction)
   4. cache.get() returns this marked entry
   5. Cleanup runs after delay → cleanStarted=true
   6. Subsequent lookups throw IllegalStateException
   
   This fix detects entries with markedForCleanup=true in getIndexEntry(),
   invalidates them, and refetches from remote storage as a cache miss.


-- 
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