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: Load balancer remote cache bugs #1636

Merged
merged 3 commits into from Jul 26, 2021
Merged

Conversation

jandadav
Copy link
Contributor

@jandadav jandadav commented Jul 26, 2021

Description

Fix several bugs and some refactors to make the remote cache behave consistently

Description of the bugs

  • When cache record exists locally but not on remote, the check in post-store filter (whether the instance is already cached) returned true (local) cache and remote cache was never updated.

  • Another one is when cache is stored locally, and then retrieved from remote, then inconsistent behavior happens when remote disappears or fails. The stores to local never happens.

  • Another bug is that cache record did never get updated thanks to 409 Conflict from caching service. This led to cache record never updating and expiring after 8 hours since "first" usage, and not the "last" usage.

Linked to #1412

Signed-off-by: jandadav <janda.david@gmail.com>
Signed-off-by: jandadav <janda.david@gmail.com>
Signed-off-by: jandadav <janda.david@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Jul 26, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.5% 90.5% Coverage
0.0% 0.0% Duplication

@jandadav jandadav merged commit 129b33c into master Jul 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the rip/GH1412/fix-remote-cache-bugs branch July 26, 2021 14:55
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.

None yet

2 participants