-
Notifications
You must be signed in to change notification settings - Fork 8k
fix PILOT_ENABLE_RDS_CACHE flag not working #40719
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
Conversation
When building RDS, cache get is always conducted not respecting the PILOT_ENABLE_RDS_CACHE flag. This CL fixes that. Cache add already respects the flag: https://github.com/airbnb/istio/blob/1.14.3-airbnb1/pilot/pkg/networking/core/v1alpha3/httproute.go#L212 Change-Id: Ic0634647239a6def8ced4ce611f5a986f130c95a Reviewed-on: https://gerrit.musta.ch/c/public/istio/+/3611 Reviewed-by: Douglas Jordan <douglas.jordan@airbnb.com> Reviewed-by: Jungho Ahn <jungho.ahn@airbnb.com> Reviewed-by: Weibo He <weibo.he@airbnb.com>
🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test? Courtesy of your friendly test nag. |
resource, exist := xdsCache.Get(routeCache) | ||
if exist && !features.EnableUnsafeAssertions { | ||
return nil, resource, routeCache | ||
if features.EnableRDSCaching { |
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.
for get we donot need this
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.
why is that? for cds we do respect it for get as well
https://github.com/istio/istio/blob/1.14.3/pilot/pkg/networking/core/v1alpha3/cluster_builder.go#L1271
So what is this fixing? |
seems performance optimization for when its disabled? LGTM |
yes, disabling it helps with propagation delay. I posted my testing here: #40744 |
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.
improve on not construct
This CL patches commit b0db731 from upstream istio into air-release-1.13.3 to fix the PILOT_ENABLE_RDS_CACHE flag. Original PR can be found here: istio#40719. The description from that PR is reproduced below. When building RDS, cache get is always conducted not respecting the PILOT_ENABLE_RDS_CACHE flag. This PR fixes that. Cache add already respects the flag: https://github.com/istio/istio/blob/1.14.3/pilot/pkg/networking/core/v1alpha3/httproute.go#L212 Change-Id: I5080a152caef9ff55cf23e958e75de7531d56d47 Reviewed-on: https://gerrit.musta.ch/c/public/istio/+/3625 Reviewed-by: Ryan Smick <ryan.smick@airbnb.com>
Apply the following list of patches to istio 1.14.4: * sidecar: filter service ports to VS ports (istio#39067) * istio: register init push context metric (istio#40049) * istio: add metric for debouncing (istio#40523) * istio: fix PILOT_ENABLE_RDS_CACHE flag not working (istio#40719) * istio: support inline multi-values header in authz header match (https://gerrit.musta.ch/c/public/istio/+/3622, not yet merged upstream) Change-Id: I69b861d884608dabad44db1fee03f66eb4b25ab2 Reviewed-on: https://gerrit.musta.ch/c/public/istio/+/3695 Reviewed-by: Ying Zhu <ying.zhu@airbnb.com> Reviewed-by: Weibo He <weibo.he@airbnb.com>
Apply the following list of patches to istio 1.14.5: * sidecar: filter service ports to VS ports (istio#39067) * istio: register init push context metric (istio#40049) * istio: add metric for debouncing (istio#40523) * istio: fix PILOT_ENABLE_RDS_CACHE flag not working (istio#40719) * istio: support inline multi-values header in authz header match (https://gerrit.musta.ch/c/public/istio/+/3622, not yet merged upstream) * istio: improve deep copy for ServiceAttribute (istio#40966) * avoid unnecessary copy virtual services for sidecar scope calculation (istio#41101) Change-Id: Ia4c9bfd619a0eb38c1a829bff2efbd21fd3b9cb2 Reviewed-on: https://gerrit.musta.ch/c/public/istio/+/3883 Reviewed-by: Ying Zhu <ying.zhu@airbnb.com> Reviewed-by: Weibo He <weibo.he@airbnb.com>
Apply the following list of upstream commits to istio 1.15.3: * istio: add metric for debouncing (istio#40523) * istio: fix PILOT_ENABLE_RDS_CACHE flag not working (istio#40719) * istio: improve deep copy for ServiceAttribute (istio#40966) * avoid unnecessary copy virtual services for sidecar scope calculation (istio#41101) Change-Id: I2ee1d77d096a329dc8f590151223b37193dd4f1b Reviewed-on: https://gerrit.musta.ch/c/public/istio/+/3990 Reviewed-by: Ying Zhu <ying.zhu@airbnb.com> Reviewed-by: Ryan Smick <ryan.smick@airbnb.com>
/cherrypick release-1.15 |
@S-Chan: new pull request created: #42669 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Please provide a description of this PR:
When building RDS, cache get is always conducted not respecting the
PILOT_ENABLE_RDS_CACHE flag. This PR fixes that.
Cache add already respects the flag:
https://github.com/istio/istio/blob/1.14.3/pilot/pkg/networking/core/v1alpha3/httproute.go#L212