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

Passing page limit to cach config instead of override. #452

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

yash97
Copy link
Contributor

@yash97 yash97 commented Aug 6, 2024

Issue #, if available:
solves #412
Description of changes:
As described in issue #412, controller data store gets partially hydrated if it received error 410. This is because reflector calls customized listFunc with page limit set to 0 but code was overwriting page limit, resulting in partial list instead of full list. This PR passes page limit option to cache config struct and let reflector handle state of options.limit as it will change it to 0 if it faces resource expired error.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@yash97 yash97 requested a review from a team as a code owner August 6, 2024 22:13
@GnatorX
Copy link
Contributor

GnatorX commented Aug 7, 2024

The code looks good. I need some time before I can test this.

@yash97
Copy link
Contributor Author

yash97 commented Aug 13, 2024

Hi @GnatorX any update from your scale test?

@GnatorX
Copy link
Contributor

GnatorX commented Aug 14, 2024

I was only able to test that it fixed the issue however I currently don't have time to test it at scale. I suspect I won't be able to test at scale for some time. I am peaceful with this change moving forward but will try to report back when I am able to test at scale.

Copy link
Contributor

@haouc haouc left a comment

Choose a reason for hiding this comment

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

lgtm

@yash97 yash97 merged commit a4bf191 into aws:master Sep 5, 2024
4 checks passed
yash97 added a commit to yash97/amazon-vpc-resource-controller-k8s that referenced this pull request Sep 10, 2024
* passing page limit to cache config

* adding error log to optimized list watcher
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