hachikuji opened a new pull request, #12262: URL: https://github.com/apache/kafka/pull/12262
We have been seeing a lot of timeouts in `LogOffsetTest` when KRaft is enabled. The problem is the dependence on `MockTime`. In the KRaft broker, we depend on having a steadily advancing time for events in `KafkaEventQueue` to get executed. In the case of the timeouts, the broker was stuck with the next heartbeat event in the queue, which we depended on in order to send the next heartbeat and complete the `initialCatchUpFuture`, which is needed to finish startup. As far as I can tell, the test does not have a strong dependence on `MockTime`, so I have replaced it with system time. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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