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

   ## Fix for flaky testConcurrentRemoveReadForCache1
   
   ### Short description of root cause: 
   Before scheduler starts clean up, he's triggering read thread. If it's 
happening before RemoteIndexCache#remove does remove entity from cache, reader 
thread will successfully read entity, and won't trigger fetching from remote log
   
   ### Full analysis: 
   https://issues.apache.org/jira/browse/KAFKA-19286
   
   ### Evidence:
   Run entire test class and annotate testConcurrentRemoveReadForCache1 as 
RepeatedTest to run 100_000 times
   
   **Result:**
   
   `./gradlew storage:test --tests 
org.apache.kafka.storage.internals.log.RemoteIndexCacheTest`
   ...
   `BUILD SUCCESSFUL in 48m 11s`
   


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