Skip to content

Commit 17a72fb

Browse files
committed
Removed @UpdateForV9 annotation since ?wait_for_active_shards has been removed
1 parent d9d4691 commit 17a72fb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,19 +1992,9 @@ protected static boolean indexExists(RestClient client, String index) throws IOE
19921992
return RestStatus.OK.getStatus() == response.getStatusLine().getStatusCode();
19931993
}
19941994

1995-
/**
1996-
* Deprecation message emitted since 7.12.0 for the rest of the 7.x series. Can be removed in v9 since it is not
1997-
* emitted in v8. Note that this message is also permitted in certain YAML test cases, it can be removed there too.
1998-
* See https://github.com/elastic/elasticsearch/issues/66419 for more details.
1999-
*/
2000-
@UpdateForV9(owner = UpdateForV9.Owner.DATA_MANAGEMENT)
2001-
private static final String WAIT_FOR_ACTIVE_SHARDS_DEFAULT_DEPRECATION_MESSAGE = "the default value for the ?wait_for_active_shards "
2002-
+ "parameter will change from '0' to 'index-setting' in version 8; specify '?wait_for_active_shards=index-setting' "
2003-
+ "to adopt the future default behaviour, or '?wait_for_active_shards=0' to preserve today's behaviour";
20041995

20051996
protected static void closeIndex(String index) throws IOException {
20061997
final Request closeRequest = new Request(HttpPost.METHOD_NAME, "/" + index + "/_close");
2007-
closeRequest.setOptions(expectVersionSpecificWarnings(v -> v.compatible(WAIT_FOR_ACTIVE_SHARDS_DEFAULT_DEPRECATION_MESSAGE)));
20081998
assertOK(client().performRequest(closeRequest));
20091999
}
20102000

0 commit comments

Comments
 (0)