KAFKA-19511: Fix flaky test HandlingSourceTopicDeletionIntegrationTest.shouldThrowErrorAfterSourceTopicDeleted#20183
Conversation
|
Thanks for the PR. I am not sure if I fully understand. I believe this issue with this test was introduced when What you describe sounds very generic and I am wondering why it was not a problem for Btw: Looking into the test, it seems we are leaking Another minor fix could be, to replace |
|
@mjsax Yeah, it only happens in the new protocol, I've run it for a hundred times maybe, old protocols are all good, half of the new test spend 100s and failed the original test since it's set to 60s. |
Ticket here: https://issues.apache.org/jira/browse/KAFKA-19511
Original timeout for HandlingSourceTopicDeletionIntegrationTest is 60s
which is not enough. Sometimes the state of Kafka streams thread needs
around 100s to change the state from PENDING ERROR to ERROR, as it still
try to poll data while the source topic is missing, also while leaving
the consumer group it will reach the timeout for 30s.