File tree 7 files changed +17
-20
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test
server/src/main/java/org/elasticsearch/action/admin/indices/shrink
7 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
" Shrink index via API " :
3
3
- skip :
4
- version : " - 6.99 .99"
5
- reason : expects warnings that pre-7.0 .0 will not send
4
+ version : " - 6.3 .99"
5
+ reason : expects warnings that pre-6.4 .0 will not send
6
6
features : " warnings"
7
7
# creates an index with one document solely allocated on the master node
8
8
# and shrinks it into a new index with a single shard
Original file line number Diff line number Diff line change 1
1
---
2
2
" Shrink index ignores target template mapping " :
3
3
- skip :
4
- version : " - 6.99 .99"
5
- reason : expects warnings that pre-7.0 .0 will not send
4
+ version : " - 6.3 .99"
5
+ reason : expects warnings that pre-6.4 .0 will not send
6
6
features : " warnings"
7
7
8
8
- do :
Original file line number Diff line number Diff line change 1
1
---
2
2
" Copy settings during shrink index " :
3
3
- skip :
4
- version : " - 6.99 .99"
5
- reason : expects warnings that pre-7.0 .0 will not send
4
+ version : " - 6.3 .99"
5
+ reason : expects warnings that pre-6.4 .0 will not send
6
6
features : " warnings"
7
7
8
8
- do :
Original file line number Diff line number Diff line change 33
33
---
34
34
" Split index via API " :
35
35
- skip :
36
- version : " - 6.99 .99"
37
- reason : expects warnings that pre-7.0 .0 will not send
36
+ version : " - 6.3 .99"
37
+ reason : expects warnings that pre-6.4 .0 will not send
38
38
features : " warnings"
39
39
40
40
# make it read-only
@@ -110,8 +110,8 @@ setup:
110
110
# when re-enabling uncomment the below skips
111
111
version : " all"
112
112
reason : " AwaitsFix'ing, see https://github.com/elastic/elasticsearch/issues/30503"
113
- # version: " - 6.99 .99"
114
- # reason: expects warnings that pre-7.0 .0 will not send
113
+ # version: " - 6.3 .99"
114
+ # reason: expects warnings that pre-6.4 .0 will not send
115
115
features : " warnings"
116
116
- do :
117
117
indices.create :
@@ -213,8 +213,8 @@ setup:
213
213
---
214
214
" Create illegal split indices " :
215
215
- skip :
216
- version : " - 6.99 .99"
217
- reason : expects warnings that pre-7.0 .0 will not send
216
+ version : " - 6.3 .99"
217
+ reason : expects warnings that pre-6.4 .0 will not send
218
218
features : " warnings"
219
219
220
220
# try to do an illegal split with number_of_routing_shards set
Original file line number Diff line number Diff line change 4
4
# when re-enabling uncomment the below skips
5
5
version : " all"
6
6
reason : " AwaitsFix'ing, see https://github.com/elastic/elasticsearch/issues/30503"
7
- # version: " - 6.99 .99"
8
- # reason: expects warnings that pre-7.0 .0 will not send
7
+ # version: " - 6.3 .99"
8
+ # reason: expects warnings that pre-6.4 .0 will not send
9
9
features : " warnings"
10
10
11
11
# create index
Original file line number Diff line number Diff line change 1
1
---
2
2
" Copy settings during split index " :
3
3
- skip :
4
- version : " - 6.99 .99"
5
- reason : expects warnings that pre-7.0 .0 will not send
4
+ version : " - 6.3 .99"
5
+ reason : expects warnings that pre-6.4 .0 will not send
6
6
features : " warnings"
7
7
8
8
- do :
Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ public void readFrom(StreamInput in) throws IOException {
101
101
}
102
102
if (in .getVersion ().before (Version .V_6_4_0 )) {
103
103
copySettings = null ;
104
- } else if (in .getVersion ().onOrAfter (Version .V_6_4_0 ) && in .getVersion ().before (Version .V_7_0_0_alpha1 )){
105
- copySettings = in .readBoolean ();
106
104
} else {
107
105
copySettings = in .readOptionalBoolean ();
108
106
}
@@ -116,10 +114,9 @@ public void writeTo(StreamOutput out) throws IOException {
116
114
if (out .getVersion ().onOrAfter (ResizeAction .COMPATIBILITY_VERSION )) {
117
115
out .writeEnum (type );
118
116
}
117
+ // noinspection StatementWithEmptyBody
119
118
if (out .getVersion ().before (Version .V_6_4_0 )) {
120
119
121
- } else if (out .getVersion ().onOrAfter (Version .V_6_4_0 ) && out .getVersion ().before (Version .V_7_0_0_alpha1 )) {
122
- out .writeBoolean (copySettings == null ? false : copySettings );
123
120
} else {
124
121
out .writeOptionalBoolean (copySettings );
125
122
}
You can’t perform that action at this time.
0 commit comments