Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure proper retry and backoff for newly created monitor topics #390

Open
gitlw opened this issue Dec 19, 2022 · 1 comment
Open

Ensure proper retry and backoff for newly created monitor topics #390

gitlw opened this issue Dec 19, 2022 · 1 comment
Assignees

Comments

@gitlw
Copy link

gitlw commented Dec 19, 2022

As shown in the conversations https://linkedin-randd.slack.com/archives/C04FMP0HB17/p1671222219329569,
if a new monitoring topic is just created in a cluster, the AdminClient.describeTopic API could result in UnknownTopicOrPartitionExceptions, which causes the whole process to crash. Below are the places that can trigger the exception (and there maybe more call sites)

_adminClient.describeTopics(Collections.singleton(_topic)).all().get().get(_topic).partitions();

List<TopicPartitionInfo> partitions = topicDescriptions.get(_requestTimeout.toMillis(), TimeUnit.MILLISECONDS).partitions();

We need to make sure that the logic calling the describeTopic API has appropriate retries and backoffs in case it's a topic that's just created.

@github-actions
Copy link

This is your first issue in the repository. Thank you for raising this issue.' first issue

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

No branches or pull requests

2 participants