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

grpc-js-xds: Fix handling of resource validation errors #2433

Conversation

murgatroid99
Copy link
Member

Previously resources that had validation errors were treated as though they were omitted entirely, but that is incorrect. They should be treated as transient errors. This change fixes that. The behavior difference is that missing resources unconditionally cause the resolver or LB policy to report an error, but transient errors allow the previous version of the same resource to be used if possible. That is what the new tests verify.

Copy link
Member

@sergiitk sergiitk left a comment

Choose a reason for hiding this comment

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

LGTM, minor suggestions

packages/grpc-js-xds/test/test-nack.ts Outdated Show resolved Hide resolved
packages/grpc-js-xds/test/test-nack.ts Outdated Show resolved Hide resolved
packages/grpc-js-xds/test/test-nack.ts Outdated Show resolved Hide resolved
Copy link
Member

@sergiitk sergiitk left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my nits!

@murgatroid99 murgatroid99 merged commit 4fcd9c2 into grpc:@grpc/grpc-js@1.8.x Apr 24, 2023
4 of 5 checks passed
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.

None yet

2 participants