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

Resync pods after cache invalidation #120

Merged

Conversation

codeblooded
Copy link
Contributor

@codeblooded codeblooded commented Mar 27, 2021

In order to gang schedule, the controller must invalidate the cache and determine the availability of the cluster using the current pods and nodes. In the previous version, the current pod list was not refreshed after the invalidation. This change reloads the pod list to avoid edge-case errors.

Note: this issue has not yet been observed on the cluster. However, I noticed it could be problematic doing a walk-through of the controller code.

In order to gang schedule, the controller must invalidate the cache and
determine the availability of the cluster using the current pods and
nodes. In the previous version, the current pod list was not refreshed
after the invalidation. This change reloads the pod list to avoid
edge-case errors.
@codeblooded codeblooded added bug Something isn't working release notes: no Indicates that PR should not be in release notes labels Mar 27, 2021
@codeblooded codeblooded self-assigned this Mar 27, 2021
@paulosjca paulosjca added release notes: yes Indicates that PR needs to be in release notes and removed release notes: no Indicates that PR should not be in release notes labels Mar 29, 2021
@codeblooded codeblooded merged commit ef219f9 into grpc:master Mar 29, 2021
@codeblooded codeblooded deleted the resync-pods-after-cache-invalidation branch March 29, 2021 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release notes: yes Indicates that PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants