Skip to content

fix: primary cache utils mechanism #2814

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix: primary cache utils mechanism #2814

wants to merge 2 commits into from

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented May 21, 2025

Reading from API server was not correct, this works in all cases only if the informer cache has the up to date resources.
If we don't have the up to date resource in the cache, and don't do the update based on that, we cannot say for sure if we can remove the resource for the next event or not from overlay cache.

Signed-off-by: Attila Mészáros [email protected]

Signed-off-by: Attila Mészáros <[email protected]>
@openshift-ci openshift-ci bot requested review from metacosm and xstefank May 21, 2025 14:54
@csviri
Copy link
Collaborator Author

csviri commented May 21, 2025

see expalnation #2815

@csviri csviri requested a review from shawkins May 21, 2025 15:38
@csviri csviri requested a review from xstefank May 22, 2025 07:31
Signed-off-by: Attila Mészáros <[email protected]>
@@ -25,6 +27,8 @@
public class PrimaryUpdateAndCacheUtils {

public static final int DEFAULT_MAX_RETRY = 10;
public static final int RESOURCE_CACHE_POLL_TIMEOUT = 10000;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@shawkins do you know some real life data, if on how long it would take on larger cluster to an informer to receive the event? On small one is almost instant (if watch works), not sure how the cluster size influences this.

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.

2 participants