Skip to content

Conversation

wgjak47
Copy link

@wgjak47 wgjak47 commented Aug 13, 2025

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 <[email protected]>
@olix0r
Copy link
Member

olix0r commented Aug 14, 2025

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

@olix0r olix0r self-assigned this Aug 14, 2025

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
Copy link
Author

wgjak47 commented Sep 5, 2025

@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