-
Notifications
You must be signed in to change notification settings - Fork 257
Populate home AZ cache if it's not filled #3947
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the home availability zone (AZ) cache logic to proactively populate the cache when it's empty, instead of immediately returning a "not found" response. The change improves the robustness of the home AZ monitoring system by attempting to fetch data before failing.
Key Changes
- Modified
readCacheValue()
to callPopulate()
when cache is empty before returning a failure response - Restructured the logic flow to check cache twice - before and after population attempt
- Improved error handling by only returning failure after attempting to populate the cache
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days |
This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days |
Reason for Change:
Issue Fixed:
Requirements:
Notes: