File tree 4 files changed +10
-10
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test/indices.clone
server/src/main/java/org/elasticsearch/action/admin/indices/shrink
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 29
29
---
30
30
" Clone index via API " :
31
31
- skip :
32
- version : " - 7.99 .99"
33
- reason : index cloning was added in 8.0 .0
32
+ version : " - 7.3 .99"
33
+ reason : index cloning was added in 7.4 .0
34
34
# make it read-only
35
35
- do :
36
36
indices.put_settings :
95
95
---
96
96
" Create illegal clone indices " :
97
97
- skip :
98
- version : " - 7.99 .99"
99
- reason : index cloning was added in 8.0 .0
98
+ version : " - 7.3 .99"
99
+ reason : index cloning was added in 7.4 .0
100
100
# try to do an illegal clone with illegal number_of_shards
101
101
- do :
102
102
catch : /illegal_argument_exception/
Original file line number Diff line number Diff line change 1
1
---
2
2
" Clone index ignores target template mapping " :
3
3
- skip :
4
- version : " - 7.99 .99"
5
- reason : index cloning was added in 8.0 .0
4
+ version : " - 7.3 .99"
5
+ reason : index cloning was added in 7.4 .0
6
6
# create index
7
7
- do :
8
8
indices.create :
Original file line number Diff line number Diff line change 1
1
---
2
2
" Copy settings during clone index " :
3
3
- skip :
4
- version : " - 7.99 .99"
5
- reason : index cloning was added in 8.0 .0
4
+ version : " - 7.3 .99"
5
+ reason : index cloning was added in 7.4 .0
6
6
features : [arbitrary_key]
7
7
8
8
- do :
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ public void writeTo(StreamOutput out) throws IOException {
101
101
super .writeTo (out );
102
102
targetIndexRequest .writeTo (out );
103
103
out .writeString (sourceIndex );
104
- if (type == ResizeType .CLONE && out .getVersion ().before (Version .V_8_0_0 )) {
105
- throw new IllegalArgumentException ("can't send clone request to a node that's older than " + Version .V_8_0_0 );
104
+ if (type == ResizeType .CLONE && out .getVersion ().before (Version .V_7_4_0 )) {
105
+ throw new IllegalArgumentException ("can't send clone request to a node that's older than " + Version .V_7_4_0 );
106
106
}
107
107
out .writeEnum (type );
108
108
out .writeOptionalBoolean (copySettings );
You can’t perform that action at this time.
0 commit comments