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(cachingFilter: Allow disabling the content caching filter #1699

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

jasonmcintosh
Copy link
Member

We see this caching filter break things BADLY. Ability to disable it, defaults to leaving it on.

Copy link
Contributor

@jvz jvz left a comment

Choose a reason for hiding this comment

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

Works for me, though I'd also be in favor of removing it entirely.

@jasonmcintosh
Copy link
Member Author

:P this way I can backport it ;) since feature flagged

@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for merge label Aug 31, 2023
@mergify mergify bot added the auto merged label Aug 31, 2023
@mergify mergify bot merged commit 7e403b0 into spinnaker:master Aug 31, 2023
4 checks passed
@jasonmcintosh
Copy link
Member Author

@Mergifyio backport release-1.30.x release-1.31.x release-1.32.x

@mergify
Copy link
Contributor

mergify bot commented Sep 1, 2023

backport release-1.30.x release-1.31.x release-1.32.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 1, 2023
* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)
mergify bot pushed a commit that referenced this pull request Sep 1, 2023
* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)
mergify bot pushed a commit that referenced this pull request Sep 1, 2023
* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)
mergify bot added a commit that referenced this pull request Sep 1, 2023
…#1700)

* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)

Co-authored-by: Jason <jason.mcintosh@armory.io>
@jasonmcintosh
Copy link
Member Author

https://github.com/Mergifyio backport release-1.28.x

@mergify
Copy link
Contributor

mergify bot commented Sep 1, 2023

backport release-1.28.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 1, 2023
* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)
@mattgogerly
Copy link
Member

@jasonmcintosh do you have any examples of what this breaks? Curious if any issues we see tally.

@jasonmcintosh
Copy link
Member Author

The biggest problem I've PERSONALLY seen right is situations where gate just fails BADLY on these responses on LARGE pipelines. We've got traces showing orca respond in 2 seconds, then gate takes 80 seconds to do this. It's ENTIRELY in this filter eating up response times. SO there's some of this that's... potentially "scaling" issues or similar on gate to match orca capacities, but it's definitely been painful memory usage as well because of how this operates.

There are other areas this breaks when using different UI libs as well. @jvz can probably talk more to some of those impacts.

@dbyron-sf
Copy link
Contributor

Plus also, why not backport to 1.29/1.30/1.31/1.32?

@jasonmcintosh
Copy link
Member Author

Cause I missed that in my copy/paste ;)
/**

  • This filter simply buffers/caches the response so that the Content-Length header can be set.
  • Setting the Content-Length header prevents a response from being transferred with chunked
  • encoding which may be problematic for some http clients.
    */
    See the above note in the content caching filter itself btw.

@jasonmcintosh
Copy link
Member Author

https://github.com/Mergifyio backport release-1.29.x

@mergify
Copy link
Contributor

mergify bot commented Sep 1, 2023

backport release-1.29.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 1, 2023
* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)
mergify bot added a commit that referenced this pull request Sep 1, 2023
…#1703)

* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)

Co-authored-by: Jason <jason.mcintosh@armory.io>
@jasonmcintosh
Copy link
Member Author

image
You can see perf data here for example...

@jasonmcintosh
Copy link
Member Author

The original theory on this I think was eTag support. BUT there's some major gotchas around that.
spring-projects/spring-framework#18923 (comment) also an interesting comment :)

mergify bot added a commit that referenced this pull request Sep 1, 2023
…#1701)

* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)

Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request Sep 1, 2023
…#1702)

* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)

Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request Sep 1, 2023
…#1704)

* fix(cachingFilter: Allow disabling the content caching filter

* fix(cachingFilter: Allow disabling the content caching filter

(cherry picked from commit 7e403b0)

Co-authored-by: Jason <jason.mcintosh@armory.io>
@jvz
Copy link
Contributor

jvz commented Sep 1, 2023

The caching filter breaks async controllers that use reactive streams or coroutines for one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants