oneby-wang opened a new pull request, #24317: URL: https://github.com/apache/kafka/pull/24317
Both variants of `testRecoveryFromEpochOverflow` set the producer epoch to 32765 to exercise epoch rollover. When `abortTransaction()` returns, the coordinator can still be completing the first abort at epoch 1. Changing the epoch too early causes that transition to fail and the next producer to time out in `initTransactions()`. [KAFKA-21588](https://issues.apache.org/jira/browse/KAFKA-21588) In the shared test helper, wait for `COMPLETE_ABORT` with no pending transition, then set the epoch under the same metadata lock. This preserves the asynchronous first send. Mark both the regular and tiered-storage tests with `@Flaky` so CI tracks their stability. Generated-by: OpenAI Codex (GPT-6) -- 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]
