Skip to content

MINOR: Reduce ResetConsumerGroupOffsetTest flakiness#5830

Closed
stanislavkozlovski wants to merge 1 commit intoapache:trunkfrom
stanislavkozlovski:minor-admin-tests-flakiness
Closed

MINOR: Reduce ResetConsumerGroupOffsetTest flakiness#5830
stanislavkozlovski wants to merge 1 commit intoapache:trunkfrom
stanislavkozlovski:minor-admin-tests-flakiness

Conversation

@stanislavkozlovski
Copy link
Copy Markdown
Contributor

The tests in kafka.admin.ResetConsumerGroupOffsetTest sometimes fail with

java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.CoordinatorNotAvailableException: The coordinator is not available.

I think that it would be useful to have some retry mechanism in place to hop over transient errors

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems to indicate a real problem or a misconfigured timeout. The command itself should be resilient to the coordinator being temporarily unavailable, right?

@omkreddy
Copy link
Copy Markdown
Contributor

omkreddy commented Oct 23, 2018

sometime back, I raised PR #5578 to add retry-logic to Adminclient:

@stanislavkozlovski
Copy link
Copy Markdown
Contributor Author

@ijuma I don't think a timeout would help in this case - the request is returning an error. I'm not exactly sure what's causing this but I believe it might be some race condition. I didn't manage to reproduce this locally

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Oct 23, 2018

@stanislavkozlovski See @omkreddy's PR.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Aug 26, 2019

Closing this as I believe this has been fixed by retrying at the AdminClient level.

@ijuma ijuma closed this Aug 26, 2019
@stanislavkozlovski stanislavkozlovski deleted the minor-admin-tests-flakiness branch August 28, 2019 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants