Skip to content

Commit 2d24bf6

Browse files
Tianli Fenggithub-actions[bot]
authored andcommitted
Change deprecation message for REST API parameter 'master_timeout' to specify the version of removal (#2863)
Signed-off-by: Tianli Feng <ftianli@amazon.com> (cherry picked from commit ba8657a)
1 parent ba19668 commit 2d24bf6

13 files changed

Lines changed: 21 additions & 21 deletions

File tree

rest-api-spec/src/main/resources/rest-api-spec/test/indices.clone/10_basic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ setup:
4848
# now we do the actual clone
4949
- do:
5050
allowed_warnings:
51-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
51+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
5252
indices.clone:
5353
index: "source"
5454
target: "target"
@@ -102,7 +102,7 @@ setup:
102102
- do:
103103
catch: /illegal_argument_exception/
104104
allowed_warnings:
105-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
105+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
106106
indices.clone:
107107
index: "source"
108108
target: "target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.clone/20_source_mapping.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# now we do the actual clone
5353
- do:
5454
allowed_warnings:
55-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
55+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
5656
indices.clone:
5757
index: "source"
5858
target: "target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.clone/30_copy_settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# now we do an actual clone and copy settings
3838
- do:
3939
allowed_warnings:
40-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
40+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
4141
indices.clone:
4242
index: "source"
4343
target: "copy-settings-target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.shrink/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# now we do the actual shrink
5858
- do:
5959
allowed_warnings:
60-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
60+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
6161
indices.shrink:
6262
index: "source"
6363
target: "target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.shrink/20_source_mapping.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
# now we do the actual shrink
6262
- do:
6363
allowed_warnings:
64-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
64+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
6565
indices.shrink:
6666
index: "source"
6767
target: "target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.shrink/30_copy_settings.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
index.merge.scheduler.max_thread_count: 2
4848
allowed_warnings:
4949
- "parameter [copy_settings] is deprecated and will be removed in 8.0.0"
50-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
50+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
5151

5252
- do:
5353
cluster.health:
@@ -66,7 +66,7 @@
6666
# now we do a actual shrink and copy settings (by default)
6767
- do:
6868
allowed_warnings:
69-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
69+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
7070
indices.shrink:
7171
index: "source"
7272
target: "default-copy-settings-target"
@@ -95,7 +95,7 @@
9595
- do:
9696
catch: /illegal_argument_exception/
9797
allowed_warnings:
98-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
98+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
9999
indices.shrink:
100100
index: "source"
101101
target: "explicit-no-copy-settings-target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.split/10_basic.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ setup:
4848
# now we do the actual split
4949
- do:
5050
allowed_warnings:
51-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
51+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
5252
indices.split:
5353
index: "source"
5454
target: "target"
@@ -139,7 +139,7 @@ setup:
139139
# now we do the actual split from 1 to 5
140140
- do:
141141
allowed_warnings:
142-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
142+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
143143
indices.split:
144144
index: "source_one_shard"
145145
target: "target"
@@ -192,7 +192,7 @@ setup:
192192
- do:
193193
catch: /illegal_argument_exception/
194194
allowed_warnings:
195-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
195+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
196196
indices.split:
197197
index: "source"
198198
target: "target"
@@ -208,7 +208,7 @@ setup:
208208
- do:
209209
catch: /illegal_state_exception/
210210
allowed_warnings:
211-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
211+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
212212
indices.split:
213213
index: "source"
214214
target: "target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.split/20_source_mapping.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# now we do the actual split
5353
- do:
5454
allowed_warnings:
55-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
55+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
5656
indices.split:
5757
index: "source"
5858
target: "target"

rest-api-spec/src/main/resources/rest-api-spec/test/indices.split/30_copy_settings.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
index.merge.scheduler.max_thread_count: 2
5050
allowed_warnings:
5151
- "parameter [copy_settings] is deprecated and will be removed in 8.0.0"
52-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
52+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
5353

5454
- do:
5555
cluster.health:
@@ -68,7 +68,7 @@
6868
# now we do a actual shrink and copy settings (by default)
6969
- do:
7070
allowed_warnings:
71-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
71+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
7272
indices.split:
7373
index: "source"
7474
target: "default-copy-settings-target"
@@ -97,7 +97,7 @@
9797
- do:
9898
catch: /illegal_argument_exception/
9999
allowed_warnings:
100-
- "Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version."
100+
- "Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead."
101101
indices.split:
102102
index: "source"
103103
target: "explicit-no-copy-settings-target"

server/src/main/java/org/opensearch/rest/BaseRestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public static void parseDeprecatedMasterTimeoutParameter(
219219
String logMsgKeyPrefix
220220
) {
221221
final String MASTER_TIMEOUT_DEPRECATED_MESSAGE =
222-
"Deprecated parameter [master_timeout] used. To promote inclusive language, please use [cluster_manager_timeout] instead. It will be unsupported in a future major version.";
222+
"Parameter [master_timeout] is deprecated and will be removed in 3.0. To support inclusive language, please use [cluster_manager_timeout] instead.";
223223
final String DUPLICATE_PARAMETER_ERROR_MESSAGE =
224224
"Please only use one of the request parameters [master_timeout, cluster_manager_timeout].";
225225
if (request.hasParam("master_timeout")) {

0 commit comments

Comments
 (0)