-
Notifications
You must be signed in to change notification settings - Fork 333
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(kuma-cp): don't cache filtered data #5574
Conversation
Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]>
@lukidzi does this belong in the changelog or is it a
|
It should be in the changelog, that fixes the current wrong behavior |
Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]>
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.
LGTM
@Mergifyio backport release-2.0 release-1.8 release-1.7 release-1.6 release-1.5 |
✅ Backports have been created
|
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76)
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76)
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76)
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76)
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) # Conflicts: # pkg/xds/sync/ingress_proxy_builder.go
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) # Conflicts: # pkg/xds/sync/ingress_proxy_builder.go Signed-off-by: Lukasz Dziedziak <[email protected]>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fixed parameters Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fix conflict Signed-off-by: Lukasz Dziedziak <[email protected]> Signed-off-by: Lukasz Dziedziak <[email protected]> Co-authored-by: Łukasz Dziedziak <[email protected]>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fixed parameters Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fix conflict Signed-off-by: Lukasz Dziedziak <[email protected]> Signed-off-by: Lukasz Dziedziak <[email protected]> Co-authored-by: Łukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): removed character Signed-off-by: Lukasz Dziedziak <[email protected]> Signed-off-by: Lukasz Dziedziak <[email protected]> Co-authored-by: Łukasz Dziedziak <[email protected]>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fixed parameters Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fix conflict Signed-off-by: Lukasz Dziedziak <[email protected]> * test(kuma-cp): fix wait for goroutine to be done (backport #5638) (#5647) Signed-off-by: Lukasz Dziedziak <[email protected]> Signed-off-by: Lukasz Dziedziak <[email protected]> Co-authored-by: Łukasz Dziedziak <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <[email protected]> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fixed parameters Signed-off-by: Lukasz Dziedziak <[email protected]> * fix(kuma-cp): fix conflict Signed-off-by: Lukasz Dziedziak <[email protected]> * test(kuma-cp): fix wait for goroutine to be done (backport #5638) (#5646) Signed-off-by: Lukasz Dziedziak <[email protected]> Signed-off-by: Lukasz Dziedziak <[email protected]> Co-authored-by: Łukasz Dziedziak <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* test(kuma-cp): fix wait for goroutine to be done (backport #5638) (#5648) Signed-off-by: Lukasz Dziedziak <[email protected]>
* test(kuma-cp): fix wait for goroutine to be done (backport #5638) (#5648) Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]> Signed-off-by: Bart Smykla <[email protected]>
Whenever there is a call to ReadOnlyResourceManager first it hits the cache and later if there is no hit, goes to the store. In case there is a
List
call that has filters, we filter on the store/pagination store. Later that result is returned, cached, and here we have an issue. The key which keeps the data has no information about filters so the filtered result is stored at the same key as no filtered. Whenever in the code we have a call forList
of objects with/without filters we are going to retrieve already cached elements. In the code, I've introduced that the cached store doesn't allow calls withListByFilterFunc
and the cache always has a sorted list.syscall.Mkfifo
have equivalent implementation on the other OS --UPGRADE.md
? --> Changelog:
entry here or add aci/
label to run fewer/more tests?