-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xds: skip callback if xds client reports error #3240
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @easwars and @menghanl)
xds/internal/balancer/xds_client_test.go, line 208 at r1 (raw file):
}, attributes.New(xdsinternal.XDSClientID, c), )
Should we make sure that the fakeXDS server actually receives the EDS request before invoking the callback?
Also, do you think it would make sense to wait for #3233 and update the test here? Or we can batch up the cleanups, however. |
Errors will be handled specifically, depending on whether it's a connection error or other types of errors. Without this fix, balancer's callback will be called with <nil> update, causing nil panic later.
df1002b
to
053537e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @easwars and @menghanl)
xds/internal/balancer/xds_client_test.go, line 208 at r1 (raw file):
Previously, easwars (Easwar Swaminathan) wrote…
Should we make sure that the fakeXDS server actually receives the EDS request before invoking the callback?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
Errors will be handled specifically, depending on whether it's a
connection error or other types of errors.
Without this fix, balancer's callback will be called with update,
causing nil panic later.
This change is