mirror of https://github.com/apache/kafka.git
CI / build (push) Waiting to run
Details
- A couple of newly added tests were found to be flaky in `AuthorizerIntegrationTest.scala`. - `testShareGroupDescribeWithGroupDescribeAndTopicDescribeAcl` and `testShareGroupDescribeWithoutGroupDescribeAcl`. These tests pass locally, so could not replicate the failure. - But logs from develocity indicated that the test fails when the following condition happens : When the background error event arrives after the consumer had unsubscribed, then these events are processed in the `handleCompletedAcknowledgements` method and the exception from the event is thrown, preventing `close()` to complete. - We need to handle this race condition where we might get the background event after unsubscribe and before processing the callbacks. - PR fixes this by ignoring the exceptions in the background queue when the `handleCompletedAcknowledgements` method is called during `close()`. This ensures `close()` completes successfully. - Have added a unit test which mimics the race condition as well. Reviewers: Andrew Schofield <aschofield@confluent.io> |
||
---|---|---|
.. | ||
clients-integration-tests/src/test | ||
src | ||
.gitignore |