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

bar: add ability to update resolver state atomically and pass directly to the balancer #2693

Merged
merged 6 commits into from
Mar 22, 2019

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Mar 15, 2019

No description provided.

@dfawley dfawley added the Type: Feature New features or improvements in behavior label Mar 15, 2019
@dfawley dfawley added this to the 1.20 Release milestone Mar 15, 2019
@dfawley dfawley requested a review from menghanl March 15, 2019 22:10
return
}
grpclog.Infof("ccResolverWrapper: sending update to cc: %v", s)
// TODO: add Channelz Trace Event
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO is irrelevant now, channelz event is recored inside updateResolverState.

Copy link
Member Author

Choose a reason for hiding this comment

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

The event in there is for the service config only.

I was thinking there probably should just be one event for the whole new resolver.State, regardless of the previous state - what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it will be confusing for the people who read the trace events. They need to manually digest the trace to understand when the change in addresses or service config happens.I would prefer only logging the event when there's a change.

Copy link
Member Author

Choose a reason for hiding this comment

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

If it's helpful for debugging, the event could also include the differences from the previous state - addresses added & removed, and old/new service config (if different). That could go into one event or several - what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think combine them into one is ok as long as it's clear which change(s) at this update.

@dfawley dfawley merged commit 3910b87 into grpc:master Mar 22, 2019
@dfawley dfawley deleted the sync branch March 22, 2019 22:02
@lock lock bot locked as resolved and limited conversation to collaborators Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Feature New features or improvements in behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants