Skip to content

Commit

Permalink
Make Rest-High-Rest-Level tests allow deprecation warning temporarily…
Browse files Browse the repository at this point in the history
…, during deprecation of request parameter 'master_timeout' (#2702) (#2741)

Temporarily build rest client with setStrictDeprecationMode(false) to allow
deprecation warning in HLRC tests while master_timeout parameters is
being refactored.

Signed-off-by: Tianli Feng <[email protected]>
(cherry picked from commit 6a2a33d)
  • Loading branch information
opensearch-trigger-bot[bot] authored Apr 4, 2022
1 parent 2e245d9 commit 17f5181
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,8 @@ protected String getProtocol() {
protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOException {
RestClientBuilder builder = RestClient.builder(hosts);
configureClient(builder, settings);
builder.setStrictDeprecationMode(true);
// TODO: set the method argument to 'true' after PR https://github.com/opensearch-project/OpenSearch/pull/2683 merged.
builder.setStrictDeprecationMode(false);
return builder.build();
}

Expand Down

0 comments on commit 17f5181

Please sign in to comment.