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

Use MethodHandles to Run HttpClient Warmup #20105

Conversation

alzimmermsft
Copy link
Member

@alzimmermsft alzimmermsft commented Mar 24, 2021

This PR introduces using MethodHandles to run warmup on an HttpClient when the API exists. If the API doesn't exist it won't be attempted and the application will continue running as normal. This change should allow Cosmos to work if Reactor Netty resolves to a version lower than 1.0.3 in the 1.0.x major-minor version set.

This is similar to the changes made in #19918 which allowed azure-core to work with both Jackson 2.11 and 2.12.

@alzimmermsft
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

Thanks a lot @alzimmermsft for this contribution for cosmos http client, appreciate your effort on this.
Approving on 2 pending comments, please resolve them and we are good to merge this in afterwards.

@alzimmermsft alzimmermsft enabled auto-merge (squash) March 25, 2021 17:07
@alzimmermsft alzimmermsft merged commit f7b6d3a into Azure:master Mar 25, 2021
@alzimmermsft alzimmermsft deleted the AzCosmos_EnableSupportForReactorNetty1.0.0 branch March 25, 2021 17:45
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.

None yet

3 participants