Skip to content

Add retry to query retention time for destination topic#863

Merged
surajkn merged 2 commits intolinkedin:masterfrom
surajkn:retry_get_retention
Sep 13, 2022
Merged

Add retry to query retention time for destination topic#863
surajkn merged 2 commits intolinkedin:masterfrom
surajkn:retry_get_retention

Conversation

@surajkn
Copy link
Copy Markdown
Collaborator

@surajkn surajkn commented Nov 3, 2021

Since migrating to AdminClient to create destination topic it was observed that sometimes there is a
lag in topic metadata to be synced to all brokers. This may result in getting incorrect (null)
retention time. Adding a retry logic to account for delay in topic metadata sync.

Important: DO NOT REPORT SECURITY ISSUES DIRECTLY ON GITHUB.
For reporting security issues and contributing security fixes,
please, email security@linkedin.com instead, as described in
the contribution guidelines.

Please, take a minute to review the contribution guidelines at:
https://github.com/linkedin/Brooklin/blob/master/CONTRIBUTING.md

Suraj Kasi added 2 commits September 13, 2022 13:38
Since migrating to AdminClient to create destination topic it was observed that sometimes there is a
lag in topic metadata to be synced to all brokers. This may result in getting incorrect (null)
retention time. Adding a retry logic to account for delay in topic metadata sync.
@surajkn surajkn force-pushed the retry_get_retention branch from e64cce2 to f421d85 Compare September 13, 2022 20:41
Copy link
Copy Markdown
Collaborator

@jzakaryan jzakaryan left a comment

Choose a reason for hiding this comment

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

Looks good to me

@surajkn surajkn merged commit 85a46e3 into linkedin:master Sep 13, 2022
@surajkn surajkn deleted the retry_get_retention branch September 13, 2022 23:35
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