-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow the deprecation warning of the REST API request parameter 'master_timeout' for the requests sent by High Level REST Client #2912
Conversation
…eter 'master_timeout' to HTTP response header Signed-off-by: Tianli Feng <[email protected]>
c7fa494
to
5f5bcba
Compare
Signed-off-by: Tianli Feng <[email protected]>
❌ Gradle Check failure c7fa494c5e30ddeea632c658a7eab8daa2d72fce |
Signed-off-by: Tianli Feng <[email protected]>
309e20f
to
b0d588e
Compare
❌ Gradle Check failure 309e20fbfab796c1f0aceea515a959888bf8c2f5 |
Signed-off-by: Tianli Feng <[email protected]>
Only allow the deprecation warning in HLRC has got a defect that a deprecation warning will still be logged in file of the server (logs directory). It will confuse the user, because they didn't use the parameter actively. The problem will be addressed in PR #2920 instead. |
Description
The REST API request parameter 'master_timeout' is deprecated in issue #2511.
The PR allows the specific deprecation warning when Requests are sent by High Level REST Client.
In High Level REST Client, parameter 'master_timeout' is added to every applicable REST API call,
see org.opensearch.client.RequestConverters.Params.withMasterTimeout(TimeValue).
To keep the compatibility of Rest Client 2.x with server 1.x, the parameter 'master_timeout' is preserved.
The deprecated parameter is not actively used by the user, so allow the deprecation warning by default.
Issues Resolved
A part of #2511
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.