Skip to content

Commit d35841e

Browse files
author
elasticsearchmachine
committed
Merge remote-tracking branch 'origin/main' into lucene_snapshot
2 parents 82430af + ad1938d commit d35841e

File tree

39 files changed

+2374
-137
lines changed

39 files changed

+2374
-137
lines changed

benchmarks/src/main/java/org/elasticsearch/benchmark/index/mapper/LogsDbDocumentParsingBenchmark.java

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.

docs/changelog/118958.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118958
2+
summary: Add missing timeouts to rest-api-spec SLM APIs
3+
area: ILM+SLM
4+
type: bug
5+
issues: []

modules/data-streams/src/test/java/org/elasticsearch/datastreams/DataStreamGetWriteIndexTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public void setup() throws Exception {
241241
new MetadataFieldMapper[] { dtfm },
242242
Collections.emptyMap()
243243
);
244-
MappingLookup mappingLookup = MappingLookup.fromMappers(mapping, List.of(dtfm, dateFieldMapper), List.of());
244+
MappingLookup mappingLookup = MappingLookup.fromMappers(mapping, List.of(dtfm, dateFieldMapper), List.of(), null);
245245
indicesService = DataStreamTestHelper.mockIndicesServices(mappingLookup);
246246
}
247247

rest-api-spec/src/main/resources/rest-api-spec/api/slm.delete_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
}
2626
]
2727
},
28-
"params":{}
28+
"params":{
29+
"master_timeout":{
30+
"type":"time",
31+
"description":"Explicit operation timeout for connection to master node"
32+
},
33+
"timeout":{
34+
"type":"time",
35+
"description":"Explicit operation timeout"
36+
}
37+
}
2938
}
3039
}

rest-api-spec/src/main/resources/rest-api-spec/api/slm.execute_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
}
2626
]
2727
},
28-
"params":{}
28+
"params":{
29+
"master_timeout":{
30+
"type":"time",
31+
"description":"Explicit operation timeout for connection to master node"
32+
},
33+
"timeout":{
34+
"type":"time",
35+
"description":"Explicit operation timeout"
36+
}
37+
}
2938
}
3039
}

rest-api-spec/src/main/resources/rest-api-spec/api/slm.execute_retention.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
]
2121
},
22-
"params":{}
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
},
27+
"timeout":{
28+
"type":"time",
29+
"description":"Explicit operation timeout"
30+
}
31+
}
2332
}
2433
}

rest-api-spec/src/main/resources/rest-api-spec/api/slm.get_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
}
3232
]
3333
},
34-
"params":{}
34+
"params":{
35+
"master_timeout":{
36+
"type":"time",
37+
"description":"Explicit operation timeout for connection to master node"
38+
},
39+
"timeout":{
40+
"type":"time",
41+
"description":"Explicit operation timeout"
42+
}
43+
}
3544
}
3645
}

rest-api-spec/src/main/resources/rest-api-spec/api/slm.get_stats.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
]
2121
},
22-
"params":{}
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
},
27+
"timeout":{
28+
"type":"time",
29+
"description":"Explicit operation timeout"
30+
}
31+
}
2332
}
2433
}

rest-api-spec/src/main/resources/rest-api-spec/api/slm.get_status.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
]
2121
},
22-
"params":{}
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
},
27+
"timeout":{
28+
"type":"time",
29+
"description":"Explicit operation timeout"
30+
}
31+
}
2332
}
2433
}

rest-api-spec/src/main/resources/rest-api-spec/api/slm.put_lifecycle.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@
2626
}
2727
]
2828
},
29-
"params":{},
29+
"params":{
30+
"master_timeout":{
31+
"type":"time",
32+
"description":"Explicit operation timeout for connection to master node"
33+
},
34+
"timeout":{
35+
"type":"time",
36+
"description":"Explicit operation timeout"
37+
}
38+
},
3039
"body":{
3140
"description":"The snapshot lifecycle policy definition to register"
3241
}

0 commit comments

Comments
 (0)