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

fix(discovery): remove the unnecessary 5-second wait when another goroutine is doing resync #379

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

SOF3
Copy link
Member

@SOF3 SOF3 commented Dec 4, 2024

Description

The constant 5-second wait unnecessarily blocks aggregator.Send() and Linker.Lookup() calls for 5 seconds continuously when audit data do not match the reported resources from discovery consistently (the reason of which yet to be investigated)

Related issues

Special notes for your reviewer:

@SOF3 SOF3 added the bug Something isn't working label Dec 4, 2024
@SOF3 SOF3 requested a review from xuqingyun December 18, 2024 03:45
@SOF3 SOF3 force-pushed the discovery-cache-timeout branch from d1294ac to 07a48df Compare January 7, 2025 05:33
@SOF3 SOF3 enabled auto-merge January 8, 2025 09:33
@SOF3 SOF3 disabled auto-merge January 8, 2025 09:34
@SOF3 SOF3 enabled auto-merge January 8, 2025 09:34
Copy link
Collaborator

@xuqingyun xuqingyun left a comment

Choose a reason for hiding this comment

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

lgtm

pkg/k8s/discovery/discovery.go Outdated Show resolved Hide resolved
@SOF3 SOF3 added this pull request to the merge queue Jan 9, 2025
Merged via the queue into kubewharf:main with commit 8868298 Jan 9, 2025
11 checks passed
@SOF3 SOF3 deleted the discovery-cache-timeout branch January 9, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants