GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — api: Expose ForwardingServerBuilder for XdsServerBuilder by ejona86 · Pull Request #7633 · grpc/grpc-java

Conversation

@ejona86

@ejona86 ejona86 commented Nov 18, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This reduces ABI issues caused by returning the more precise
XdsServerBuilder in the API. See
#7552.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ejona86 ejona86 added the TODO:release blocker Issue/PR is important enough to delay the release. Removed after release issues resolved label Nov 18, 2020
@ejona86
ejona86 requested review from sanjaypujare and sergiitk November 18, 2020 00:35
sanjaypujare
sanjaypujare reviewed Nov 18, 2020
View reviewed changes
Comment thread xds/src/main/java/io/grpc/xds/ForwardingServerBuilder.java Outdated
import javax.annotation.Nullable;

/**
* A {@link ServerBuilder} that delegates all its builder method to another builder by default.

@sanjaypujare sanjaypujare Nov 18, 2020

Copy link
Copy Markdown
Contributor

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.

s/all its builder method/all its builder methods/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sanjaypujare
sanjaypujare approved these changes Nov 18, 2020
View reviewed changes

@sanjaypujare sanjaypujare left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sanjaypujare
sanjaypujare reviewed Nov 18, 2020
View reviewed changes
Comment thread xds/src/main/java/io/grpc/xds/ForwardingServerBuilder.java Outdated
/**
* This method serves to force sub classes to "hide" this static factory.
*/
public static ServerBuilder<?> forPort(int port) {

@sanjaypujare sanjaypujare Nov 18, 2020

Copy link
Copy Markdown
Contributor

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.

The XdsServerBuilder subclass will only define this as VisibleForTesting to be used by test code. Actual user code is supposed to call forPort(int,ServerCredentials) . However the subclass cannot reduce the visibility from public to package-private. Not that we can do anything in this PR about it...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sergiitk

sergiitk commented Nov 18, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Hm, why copy ForwardingServerBuilder and not just make it public? I believe the only reason we made it package-private is because it wasn't used anymore after we reverted NettyServerBuilder to extend AbstractServerImplBuilder.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sergiitk
sergiitk reviewed Nov 18, 2020
View reviewed changes

@sergiitk sergiitk left a comment

Copy link
Copy Markdown
Member

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.

I think this is a good reason to make ForwardingServerBuilder public.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ejona86
api: Expose ForwardingServerBuilder for XdsServerBuilder
3ee1b17
This reduces ABI issues caused by returning the more precise
XdsServerBuilder in the API. See
grpc#7552.
@ejona86
ejona86 force-pushed the xds-server-builder-abi branch from 442f0c9 to 3ee1b17 Compare November 18, 2020 18:44
@ejona86 ejona86 changed the title xds: Copy ForwardingServerBuilder to xds for XdsServerBuilder api: Expose ForwardingServerBuilder for XdsServerBuilder Nov 18, 2020
@ejona86

ejona86 commented Nov 18, 2020

Copy link
Copy Markdown
Member Author

I didn't make it public since I didn't want to do that in the 11th hour. But I agree it should be mostly fine. Done.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sergiitk
sergiitk approved these changes Nov 18, 2020
View reviewed changes

@sergiitk sergiitk left a comment

Copy link
Copy Markdown
Member

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.

:shipit:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ejona86
ejona86 merged commit 980956d into grpc:master Nov 18, 2020
@ejona86
ejona86 deleted the xds-server-builder-abi branch November 18, 2020 19:31
@ejona86 ejona86 removed the TODO:release blocker Issue/PR is important enough to delay the release. Removed after release issues resolved label Nov 18, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@sergiitk sergiitk sergiitk approved these changes
+1 more reviewer
@sanjaypujare sanjaypujare sanjaypujare approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@ejona86 @sergiitk @sanjaypujare
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.