Skip to content

fix(outbound): fix clientpolicy not work after remove service profile#4064

Open
wgjak47 wants to merge 1 commit into
linkerd:mainfrom
wgjak47:main
Open

fix(outbound): fix clientpolicy not work after remove service profile#4064
wgjak47 wants to merge 1 commit into
linkerd:mainfrom
wgjak47:main

Conversation

@wgjak47

@wgjak47 wgjak47 commented Aug 13, 2025

Copy link
Copy Markdown

This is a PR for fixing linkerd/linkerd2#14274. In linkerd/idle-cache/src/lib.rs get_or_insert_with function, seems the sidercar with service profile and sidercar with client policy has the same key, which cause the cache didn't expire after we delete serviceprofile and create the new httproute for the target sevice for pods that keep requesting the target service. this pr will create different keys for service profile httpsidecar and client policy httpsidecar to fix this problem.

This is a preview PR for linkerd/linkerd2#14274.
In linkerd/idle-cache/src/lib.rs get_or_insert_with function, seems the
sidercar with service profile and sidercar with client policy has the
same key, which cause the cache didn't expire after we delete
serviceprofile and create the new httproute for the target sevice for
pods that keep requesting the target service. this pr try to create
different keys for service profile httpsidecar and client policy httpsidecar

Signed-off-by: Guanjie Wang <ak47m61@gmail.com>
@olix0r

olix0r commented Aug 14, 2025

Copy link
Copy Markdown
Member

@wgjak47 thanks for submitting this. i should have some bandwidth to review next week.

@olix0r olix0r self-assigned this Aug 14, 2025
@codecov

This comment was marked as off-topic.

@cratelyn cratelyn changed the title fix(outbound): fix clientpolicy not work after remvoe service profile fix(outbound): fix clientpolicy not work after remove service profile Aug 18, 2025
@wgjak47

wgjak47 commented Sep 5, 2025

Copy link
Copy Markdown
Author

@olix0r Hi,Is there any improvement needed for this pr,or there is a better way to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants