Skip to content

Add RequestConfig support to RequestOptions #57972

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

Merged

Conversation

weizijun
Copy link
Contributor

As RequestOptions add RequestConfig, users can set some request config per request, e.g socketTimeout.

Without RequestConfig, socketTimeout can only set in RestClient init.

As different kind of request maybe have different request options, users can set RequestConfig Optional.

@weizijun
Copy link
Contributor Author

@jbaiera hi,jbaiera, can you help to review this PR.

@matriv matriv added the :Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch label Jun 11, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Java Low Level REST Client)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jun 11, 2020
@weizijun
Copy link
Contributor Author

@jasontedor hi,jasontedor, can you help to review this PR.

@jasontedor
Copy link
Member

@jakelandis Can you help find someone to review this PR?

@martijnvg martijnvg requested a review from jbaiera June 18, 2020 14:38
Copy link
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

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

Thanks for opening a PR on this. I left just one quick bit of feedback on the documentation code snippet to hopefully make it a bit easier to read.

@jbaiera
Copy link
Member

jbaiera commented Jun 25, 2020

@elasticmachine ok to test

@weizijun
Copy link
Contributor Author

@elasticmachine update branch

@weizijun weizijun requested a review from jbaiera June 27, 2020 16:06
@weizijun
Copy link
Contributor Author

@jbaiera All checks have passed, can you help to review this PR. AND please help to review another PR:#57973

Copy link
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks again!

@jbaiera jbaiera merged commit 974f6e6 into elastic:master Jun 29, 2020
jbaiera pushed a commit to jbaiera/elasticsearch that referenced this pull request Jul 9, 2020
Different kinds of requests may need different request options from the client 
default. Users can optionally set RequestConfig on a single request's 
RequestOptions to override the default. Without this, socketTimeout can only 
set at RestClient initialization.
jbaiera added a commit that referenced this pull request Jul 14, 2020
Different kinds of requests may need different request options from the client 
default. Users can optionally set RequestConfig on a single request's 
RequestOptions to override the default. Without this, socketTimeout can only 
set at RestClient initialization.

Co-authored-by: weizijun <[email protected]>
@pugnascotia pugnascotia changed the title LLRC RequestOptions add RequestConfig Add RequestConfig support to RequestOptions Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch >enhancement Team:Data Management Meta label for data/management team v7.9.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants