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

Upgrade Google HTTP Client to 1.33.0 (Apache v2) #2120

Merged
merged 7 commits into from Nov 4, 2019

Conversation

chanseokoh
Copy link
Member

@chanseokoh chanseokoh commented Nov 1, 2019

This is on top of #2118, so review that first.

Fixes #1993. Basically reverting #1980 (which in turn reverted #1882, so this is double-reverting).

  • And as in Revert Google HTTP Client upgrade #1980, we no longer need to add proxy credentials ourselves, as the Apache v2 automatically takes care of it.

  • Also removed some unnecessary URL direction code in RegistryEndpointCaller, as I realized google-http-client by default takes care of them (although it has a bug).

  • Using the Apache v2, this will clear all the deprecated usage warnings around Google HTTP Client.

@loosebazooka
Copy link
Member

Is there a concern that we could run into the performance problems from 1.5.x?

@chanseokoh
Copy link
Member Author

googleapis/google-http-java-client#855 (comment) fixed the performance issue in my small experiment (code here) where I was pushing 40MB of data to Docker Hub, back to normal.

But I'll do some more end-to-end tests before merging.

@chanseokoh
Copy link
Member Author

I find no performance issue with the new google-http-client.

@loosebazooka
Copy link
Member

Looks good, I was tracking through the bugs on this performance thing, and I'm confused that the socket buffer is ignored AND that it affected performance?

Copy link
Member Author

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

google-http-client had a longstanding bug where some curated configuration values had been ignored and instead defaults had been used. They fixed it, and applying those values started to cause the performance issue. Then we recently took out some of the curated values (the socket buffer sizes) to use default values, and things got back to normal.

@chanseokoh chanseokoh merged commit 78fafb0 into master Nov 4, 2019
@chanseokoh chanseokoh deleted the google-http-client-1.33.0 branch November 4, 2019 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Google HTTP Client
3 participants