Skip to content

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

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

yingzhuivy
Copy link
Member

@yingzhuivy yingzhuivy commented Aug 30, 2022

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

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>
@yingzhuivy yingzhuivy requested a review from a team as a code owner August 30, 2022 22:27
@istio-policy-bot
Copy link

🤔 🐛 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.

@istio-policy-bot istio-policy-bot added area/networking release-notes-none Indicates a PR that does not require release notes. labels Aug 30, 2022
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 30, 2022
resource, exist := xdsCache.Get(routeCache)
if exist && !features.EnableUnsafeAssertions {
return nil, resource, routeCache
if features.EnableRDSCaching {
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@hzxuzhonghu
Copy link
Member

So what is this fixing?

@howardjohn
Copy link
Member

seems performance optimization for when its disabled? LGTM

@yingzhuivy
Copy link
Member Author

yes, disabling it helps with propagation delay. I posted my testing here: #40744

Copy link
Member

@hzxuzhonghu hzxuzhonghu left a 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

@istio-testing istio-testing merged commit b0db731 into istio:master Sep 1, 2022
airbnb-gerrit pushed a commit to airbnb/istio that referenced this pull request Sep 1, 2022
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>
airbnb-gerrit pushed a commit to airbnb/istio that referenced this pull request Sep 13, 2022
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>
airbnb-gerrit pushed a commit to airbnb/istio that referenced this pull request Oct 12, 2022
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>
airbnb-gerrit pushed a commit to airbnb/istio that referenced this pull request Nov 10, 2022
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>
@S-Chan
Copy link
Contributor

S-Chan commented Jan 4, 2023

/cherrypick release-1.15

@istio-testing
Copy link
Collaborator

@S-Chan: new pull request created: #42669

In response to this:

/cherrypick release-1.15

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking release-notes-none Indicates a PR that does not require release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants