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(cf): Improved caching agent robustness #4351

Merged
merged 7 commits into from
Feb 25, 2020

Conversation

pdelagrave
Copy link

  • fix(cf): Skip caching CF apps having frigga incompatible names

  • fix(cf): Stop swallowing exception causes.
    Makes for deeper and informative stack traces.

  • fix(cf): Race condition causing NPE getting token in the HTTP Client.
    Was happening at startup when both the LoadBalancer and Application caching agents were first ran and shared the same client.

  • fix(cf): NPE after on-demand cache refresh run
    An on-demand cache refresh creates an ON_DEMAND cache entry that never been processed so the processedCount was null instead of 0 and the scheduled cache agent wasn't expecting that.

  • fix(cf): Adjusted log verbosity level

  • fix(cf): Re-enabling cache eviction of a serverGroup on-demand
    When not found, a serverGroup wouldn't be evicted from the cache upon an on-demand request.

  • fix(cf): Sensible defaults for cache data retrieval

Pierre Delagrave added 7 commits February 25, 2020 08:47
Makes for deeper and informative stack traces.
Was happening at startup when both the LoadBalancer and Application caching agents were first ran and shared the same client.
An on-demand cache refresh creates an ON_DEMAND cache entry that never been processed so the `processedCount` was null instead of 0 and the scheduled cache agent wasn't expecting that.
When not found, a serverGroup wouldn't be evicted from the cache upon an on-demand request.
Copy link

@Jammy-Louie Jammy-Louie left a comment

Choose a reason for hiding this comment

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

LGMT

@Jammy-Louie Jammy-Louie merged commit 00a7ea9 into spinnaker:master Feb 25, 2020
asgard-r pushed a commit to armory-io/clouddriver that referenced this pull request Mar 5, 2020
* fix(cf): Skip caching CF apps having frigga incompatible names

* fix(cf): Stop swallowing exception causes.

Makes for deeper and informative stack traces.

* fix(cf): Race condition causing NPE getting token in the HTTP Client.

Was happening at startup when both the LoadBalancer and Application caching agents were first ran and shared the same client.

* fix(cf): NPE after on-demand cache refresh run

An on-demand cache refresh creates an ON_DEMAND cache entry that never been processed so the `processedCount` was null instead of 0 and the scheduled cache agent wasn't expecting that.

* fix(cf): Adjusted log verbosity level

* fix(cf): Re-enabling cache eviction of a serverGroup on-demand

When not found, a serverGroup wouldn't be evicted from the cache upon an on-demand request.

* fix(cf): Sensible defaults for cache data retrieval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants