Skip to content

CompositeChannelCredentials: Comparator implementation#28902

Merged
yashykt merged 2 commits intogrpc:masterfrom
yashykt:CompositeCredentialsCmp
Feb 17, 2022
Merged

CompositeChannelCredentials: Comparator implementation#28902
yashykt merged 2 commits intogrpc:masterfrom
yashykt:CompositeCredentialsCmp

Conversation

@yashykt
Copy link
Copy Markdown
Member

@yashykt yashykt commented Feb 17, 2022

Context - #28844
This PR allows channels configured with the same/similar/equal CompositeChannelCredentials objects to use the same underlying subchannels. To avoid sharing subchannels with other channels, the channel arg GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL can be set to true.
cc @markdroth

@yashykt yashykt requested a review from yihuazhang February 17, 2022 02:55
@yashykt yashykt added the release notes: no Indicates if PR should not be in release notes label Feb 17, 2022
grpc_call_credentials_release(md_creds);
}

TEST(CredentialsTest, TestCompositeChannelCredsCompareSuccess) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add another test case that tests composite call creds? Just to have a more complete test coverage?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changes for the CompositeCallCredentials comparator haven't been made yet though, so the test wouldn't be useful

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah got it.

@yashykt yashykt enabled auto-merge (squash) February 17, 2022 23:00
@yashykt yashykt merged commit 2fdb5f9 into grpc:master Feb 17, 2022
yashykt added a commit that referenced this pull request Feb 18, 2022
yashykt added a commit that referenced this pull request Feb 18, 2022
yashykt added a commit to yashykt/grpc that referenced this pull request Feb 18, 2022
@copybara-service copybara-service Bot added the imported Specifies if the PR has been imported to the internal repository label Feb 18, 2022
yashykt added a commit that referenced this pull request Feb 22, 2022
…n ( #28902)" (#28919)" (#28918)

* CompositeChannelCredentials: Comparator implementation retry

* Fix test
@yashykt yashykt added release notes: yes Indicates if PR needs to be in release notes and removed release notes: no Indicates if PR should not be in release notes labels Feb 23, 2022
@yashykt yashykt deleted the CompositeCredentialsCmp branch May 18, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bloat/none imported Specifies if the PR has been imported to the internal repository lang/core perf-change/none release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants