Skip to content

Apply health check service name changes to existing subchannels.#20039

Merged
markdroth merged 1 commit intogrpc:masterfrom
markdroth:health_check_service_name_change
Aug 29, 2019
Merged

Apply health check service name changes to existing subchannels.#20039
markdroth merged 1 commit intogrpc:masterfrom
markdroth:health_check_service_name_change

Conversation

@markdroth
Copy link
Copy Markdown
Member

@markdroth markdroth commented Aug 22, 2019

This change is Reviewable

@markdroth markdroth added the release notes: no Indicates if PR should not be in release notes label Aug 22, 2019
@markdroth markdroth requested a review from AspirinSJL August 22, 2019 22:32
@markdroth markdroth requested a review from apolcyn as a code owner August 22, 2019 22:32
Copy link
Copy Markdown
Contributor

@AspirinSJL AspirinSJL left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @apolcyn and @markdroth)


src/core/ext/filters/client_channel/client_channel.cc, line 899 at r1 (raw file):

p.second

I remember that it's suggested to explicitly create a local variable for the key and value fields in a pair before using them.


src/core/ext/filters/client_channel/client_channel.cc, line 1726 at r1 (raw file):

    }
    // Update health check service name used by existing subchannel wrappers.
    for (const auto& p : chand->subchannel_wrappers_) {

Why is auto valid here?

UpdateHealthCheckServiceName() is not const?

@markdroth markdroth force-pushed the health_check_service_name_change branch from 2c2ed88 to c843002 Compare August 28, 2019 16:06
Copy link
Copy Markdown
Member Author

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @apolcyn)


src/core/ext/filters/client_channel/client_channel.cc, line 899 at r1 (raw file):

Previously, AspirinSJL (Juanli Shen) wrote…
p.second

I remember that it's suggested to explicitly create a local variable for the key and value fields in a pair before using them.

Done.


src/core/ext/filters/client_channel/client_channel.cc, line 1726 at r1 (raw file):

Previously, AspirinSJL (Juanli Shen) wrote…

Why is auto valid here?

UpdateHealthCheckServiceName() is not const?

I assume you're asking about const, not auto.

The const here means that the pointer will be const, but the object it's pointing to is not.

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Check
The committers are authorized under a signed CLA.

Copy link
Copy Markdown
Contributor

@AspirinSJL AspirinSJL left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @apolcyn and @markdroth)


src/core/ext/filters/client_channel/client_channel.cc, line 1726 at r1 (raw file):

Previously, markdroth (Mark D. Roth) wrote…

I assume you're asking about const, not auto.

The const here means that the pointer will be const, but the object it's pointing to is not.

Yes, I wanted to say const.


src/core/ext/filters/client_channel/client_channel.cc, line 889 at r2 (raw file):

WatcherWrapper*&

Using WatcherWrapper* should work the same but simpler?

Copy link
Copy Markdown
Member Author

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @apolcyn and @AspirinSJL)


src/core/ext/filters/client_channel/client_channel.cc, line 889 at r2 (raw file):

Previously, AspirinSJL (Juanli Shen) wrote…
WatcherWrapper*&

Using WatcherWrapper* should work the same but simpler?

We're resetting the value in the map on line 903, so it needs to be a reference.

Copy link
Copy Markdown
Contributor

@AspirinSJL AspirinSJL left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @apolcyn)

@markdroth
Copy link
Copy Markdown
Member Author

Known issues: #20116 #20095 #15027

@markdroth markdroth merged commit d810671 into grpc:master Aug 29, 2019
@markdroth markdroth deleted the health_check_service_name_change branch August 29, 2019 14:14
@lock lock bot locked as resolved and limited conversation to collaborators Nov 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants