Skip to content
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 agent cache incorrectly notifying unchanged protobufs. #15866

Merged
merged 2 commits into from Jan 3, 2023

Conversation

hashi-derek
Copy link
Member

This change fixes a situation where the protobuf private fields would be read by reflect.DeepEqual() and indicate data was modified. This resulted in change notifications being fired every time, which could cause performance problems in proxycfg.

@hashi-derek hashi-derek added the backport/1.14 Changes are backported to 1.14 label Dec 21, 2022
@hashi-derek hashi-derek requested review from erichaberkorn, a team and kyhavlov and removed request for a team December 21, 2022 21:20
@github-actions github-actions bot added the theme/agent-cache Agent Cache label Dec 21, 2022
This change fixes a situation where the protobuf private fields
would be read by reflect.DeepEqual() and indicate data was modified.
This resulted in change notifications being fired every time, which
could cause performance problems in proxycfg.
Copy link
Member

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

Awesome find 🥇 !

Copy link
Contributor

@erichaberkorn erichaberkorn left a comment

Choose a reason for hiding this comment

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

It might be helpful to add some tests for isEqual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.14 Changes are backported to 1.14 theme/agent-cache Agent Cache
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants