Skip to content

[targets.resolver] On failure, attempt refresh on each resolve call. - #753

Merged
manugarg merged 6 commits into
masterfrom
resolve_retry
May 29, 2024
Merged

manugarg merged 6 commits into
masterfrom
resolve_retry

Conversation

@manugarg

@manugarg manugarg commented May 29, 2024 •

Copy link
Copy Markdown
Contributor

If refresh from backend fails, we should attempt to refresh on each resolve call, regardless of the TTL.

Also, use read-write mutex instead of default mutex wherever possible. It won't have much impact on performance as we never lock for long, but it is still a good practice.

manugarg added 4 commits May 28, 2024 18:52
If refresh from backend fails, we shouldn't update the last updated
timestamp so that we can attempt to refresh it again on next resolve
attempt.

Also, use read-write mutex instead of write mutex wherever possible.
@manugarg manugarg added this to the v0.13.6 milestone May 29, 2024
@manugarg
manugarg merged commit b0e6df6 into master May 29, 2024
@manugarg
manugarg deleted the resolve_retry branch May 29, 2024 07:53
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.

1 participant