tinaselenge commented on PR #14573:
URL: https://github.com/apache/kafka/pull/14573#issuecomment-1770870075

   @showuon @dengziming Thanks for approving the PR. I also have identified the 
root cause of `checkLastFetchedEpochValidation` failure which also needs to 
call `TestUtils.waitUntilLeaderIsKnown` function after creating a topic 
partition. It retrieves the leader epoch for the topic partition too soon after 
creating a topic which results in value of `-1`. It then uses this incorrect 
epoch for the fetch request and fails.  Since it's a same fix, I could perhaps 
add it to this PR as well? 
   
   Also even though the other testcases did not fail, maybe just in case they 
should also call `TestUtils.waitUntilLeaderIsKnown` after creating topics. 


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to