Skip to content

Commit 4150807

Browse files
committed
Fix "master_timeout" query parameter issues
1 parent e389a3a commit 4150807

File tree

49 files changed

+717
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+717
-566
lines changed

output/schema/schema.json

Lines changed: 480 additions & 287 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 1 addition & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -116,24 +116,6 @@
116116
],
117117
"response": []
118118
},
119-
"ccr.delete_auto_follow_pattern": {
120-
"request": [
121-
"Request: missing json spec query parameter 'master_timeout'"
122-
],
123-
"response": []
124-
},
125-
"ccr.follow": {
126-
"request": [
127-
"Request: missing json spec query parameter 'master_timeout'"
128-
],
129-
"response": []
130-
},
131-
"ccr.follow_info": {
132-
"request": [
133-
"Request: missing json spec query parameter 'master_timeout'"
134-
],
135-
"response": []
136-
},
137119
"ccr.follow_stats": {
138120
"request": [
139121
"Request: missing json spec query parameter 'timeout'"
@@ -146,64 +128,9 @@
146128
],
147129
"response": []
148130
},
149-
"ccr.get_auto_follow_pattern": {
150-
"request": [
151-
"Request: missing json spec query parameter 'master_timeout'"
152-
],
153-
"response": []
154-
},
155-
"ccr.pause_auto_follow_pattern": {
156-
"request": [
157-
"Request: missing json spec query parameter 'master_timeout'"
158-
],
159-
"response": []
160-
},
161-
"ccr.pause_follow": {
162-
"request": [
163-
"Request: missing json spec query parameter 'master_timeout'"
164-
],
165-
"response": []
166-
},
167-
"ccr.put_auto_follow_pattern": {
168-
"request": [
169-
"Request: missing json spec query parameter 'master_timeout'"
170-
],
171-
"response": []
172-
},
173-
"ccr.resume_auto_follow_pattern": {
174-
"request": [
175-
"Request: missing json spec query parameter 'master_timeout'"
176-
],
177-
"response": []
178-
},
179-
"ccr.resume_follow": {
180-
"request": [
181-
"Request: missing json spec query parameter 'master_timeout'"
182-
],
183-
"response": []
184-
},
185131
"ccr.stats": {
186132
"request": [
187-
"Request: missing json spec query parameter 'timeout'",
188-
"Request: missing json spec query parameter 'master_timeout'"
189-
],
190-
"response": []
191-
},
192-
"ccr.unfollow": {
193-
"request": [
194-
"Request: missing json spec query parameter 'master_timeout'"
195-
],
196-
"response": []
197-
},
198-
"cluster.allocation_explain": {
199-
"request": [
200-
"Request: missing json spec query parameter 'master_timeout'"
201-
],
202-
"response": []
203-
},
204-
"cluster.delete_voting_config_exclusions": {
205-
"request": [
206-
"Request: missing json spec query parameter 'master_timeout'"
133+
"Request: missing json spec query parameter 'timeout'"
207134
],
208135
"response": []
209136
},
@@ -213,12 +140,6 @@
213140
],
214141
"response": []
215142
},
216-
"cluster.post_voting_config_exclusions": {
217-
"request": [
218-
"Request: missing json spec query parameter 'master_timeout'"
219-
],
220-
"response": []
221-
},
222143
"cluster.put_component_template": {
223144
"request": [
224145
"Request: missing json spec query parameter 'timeout'"
@@ -285,36 +206,6 @@
285206
],
286207
"response": []
287208
},
288-
"enrich.delete_policy": {
289-
"request": [
290-
"Request: missing json spec query parameter 'master_timeout'"
291-
],
292-
"response": []
293-
},
294-
"enrich.execute_policy": {
295-
"request": [
296-
"Request: missing json spec query parameter 'master_timeout'"
297-
],
298-
"response": []
299-
},
300-
"enrich.get_policy": {
301-
"request": [
302-
"Request: missing json spec query parameter 'master_timeout'"
303-
],
304-
"response": []
305-
},
306-
"enrich.put_policy": {
307-
"request": [
308-
"Request: missing json spec query parameter 'master_timeout'"
309-
],
310-
"response": []
311-
},
312-
"enrich.stats": {
313-
"request": [
314-
"Request: missing json spec query parameter 'master_timeout'"
315-
],
316-
"response": []
317-
},
318209
"eql.search": {
319210
"request": [
320211
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
@@ -341,18 +232,6 @@
341232
"type_alias definition _types:EsqlColumns / instance_of - No type definition for '_builtins:binary'"
342233
]
343234
},
344-
"features.get_features": {
345-
"request": [
346-
"Request: missing json spec query parameter 'master_timeout'"
347-
],
348-
"response": []
349-
},
350-
"features.reset_features": {
351-
"request": [
352-
"Request: missing json spec query parameter 'master_timeout'"
353-
],
354-
"response": []
355-
},
356235
"fleet.delete_secret": {
357236
"request": [
358237
"Missing request & response"
@@ -385,42 +264,36 @@
385264
},
386265
"ilm.delete_lifecycle": {
387266
"request": [
388-
"Request: query parameter 'master_timeout' does not exist in the json spec",
389267
"Request: query parameter 'timeout' does not exist in the json spec"
390268
],
391269
"response": []
392270
},
393271
"ilm.explain_lifecycle": {
394272
"request": [
395-
"Request: query parameter 'master_timeout' does not exist in the json spec",
396273
"Request: query parameter 'timeout' does not exist in the json spec"
397274
],
398275
"response": []
399276
},
400277
"ilm.get_lifecycle": {
401278
"request": [
402-
"Request: query parameter 'master_timeout' does not exist in the json spec",
403279
"Request: query parameter 'timeout' does not exist in the json spec"
404280
],
405281
"response": []
406282
},
407283
"ilm.put_lifecycle": {
408284
"request": [
409-
"Request: query parameter 'master_timeout' does not exist in the json spec",
410285
"Request: query parameter 'timeout' does not exist in the json spec"
411286
],
412287
"response": []
413288
},
414289
"ilm.start": {
415290
"request": [
416-
"Request: query parameter 'master_timeout' does not exist in the json spec",
417291
"Request: query parameter 'timeout' does not exist in the json spec"
418292
],
419293
"response": []
420294
},
421295
"ilm.stop": {
422296
"request": [
423-
"Request: query parameter 'master_timeout' does not exist in the json spec",
424297
"Request: query parameter 'timeout' does not exist in the json spec"
425298
],
426299
"response": []
@@ -452,7 +325,6 @@
452325
},
453326
"indices.field_usage_stats": {
454327
"request": [
455-
"Request: query parameter 'master_timeout' does not exist in the json spec",
456328
"Request: query parameter 'timeout' does not exist in the json spec",
457329
"Request: query parameter 'wait_for_active_shards' does not exist in the json spec"
458330
],
@@ -504,7 +376,6 @@
504376
},
505377
"ingest.delete_geoip_database": {
506378
"request": [
507-
"Request: query parameter 'master_timeout' does not exist in the json spec",
508379
"Request: query parameter 'timeout' does not exist in the json spec"
509380
],
510381
"response": []
@@ -515,12 +386,6 @@
515386
],
516387
"response": []
517388
},
518-
"ingest.get_geoip_database": {
519-
"request": [
520-
"Request: query parameter 'master_timeout' does not exist in the json spec"
521-
],
522-
"response": []
523-
},
524389
"ingest.get_ip_location_database": {
525390
"request": [
526391
"Missing request & response"
@@ -529,7 +394,6 @@
529394
},
530395
"ingest.put_geoip_database": {
531396
"request": [
532-
"Request: query parameter 'master_timeout' does not exist in the json spec",
533397
"Request: query parameter 'timeout' does not exist in the json spec"
534398
],
535399
"response": []
@@ -542,21 +406,18 @@
542406
},
543407
"license.delete": {
544408
"request": [
545-
"Request: missing json spec query parameter 'master_timeout'",
546409
"Request: missing json spec query parameter 'timeout'"
547410
],
548411
"response": []
549412
},
550413
"license.post": {
551414
"request": [
552-
"Request: missing json spec query parameter 'master_timeout'",
553415
"Request: missing json spec query parameter 'timeout'"
554416
],
555417
"response": []
556418
},
557419
"license.post_start_basic": {
558420
"request": [
559-
"Request: missing json spec query parameter 'master_timeout'",
560421
"Request: missing json spec query parameter 'timeout'"
561422
],
562423
"response": []
@@ -565,7 +426,6 @@
565426
"request": [
566427
"Request: query parameter 'type_query_string' does not exist in the json spec",
567428
"Request: missing json spec query parameter 'type'",
568-
"Request: missing json spec query parameter 'master_timeout'",
569429
"Request: missing json spec query parameter 'timeout'"
570430
],
571431
"response": []
@@ -606,24 +466,6 @@
606466
],
607467
"response": []
608468
},
609-
"nodes.hot_threads": {
610-
"request": [
611-
"Request: query parameter 'master_timeout' does not exist in the json spec"
612-
],
613-
"response": []
614-
},
615-
"nodes.info": {
616-
"request": [
617-
"Request: query parameter 'master_timeout' does not exist in the json spec"
618-
],
619-
"response": []
620-
},
621-
"nodes.stats": {
622-
"request": [
623-
"Request: query parameter 'master_timeout' does not exist in the json spec"
624-
],
625-
"response": []
626-
},
627469
"profiling.flamegraph": {
628470
"request": [
629471
"Missing request & response"
@@ -688,12 +530,6 @@
688530
"type_alias definition _types:MapboxVectorTiles / instance_of - No type definition for '_builtins:binary'"
689531
]
690532
},
691-
"search_shards": {
692-
"request": [
693-
"Request: missing json spec query parameter 'master_timeout'"
694-
],
695-
"response": []
696-
},
697533
"searchable_snapshots.clear_cache": {
698534
"request": [
699535
"Request: query parameter 'pretty' does not exist in the json spec",
@@ -756,7 +592,6 @@
756592
},
757593
"shutdown.delete_node": {
758594
"request": [
759-
"Request: query parameter 'master_timeout' does not exist in the json spec",
760595
"Request: query parameter 'timeout' does not exist in the json spec"
761596
],
762597
"response": []
@@ -769,7 +604,6 @@
769604
},
770605
"shutdown.put_node": {
771606
"request": [
772-
"Request: query parameter 'master_timeout' does not exist in the json spec",
773607
"Request: query parameter 'timeout' does not exist in the json spec"
774608
],
775609
"response": []
@@ -782,21 +616,18 @@
782616
},
783617
"slm.put_lifecycle": {
784618
"request": [
785-
"Request: query parameter 'master_timeout' does not exist in the json spec",
786619
"Request: query parameter 'timeout' does not exist in the json spec"
787620
],
788621
"response": []
789622
},
790623
"slm.start": {
791624
"request": [
792-
"Request: missing json spec query parameter 'master_timeout'",
793625
"Request: missing json spec query parameter 'timeout'"
794626
],
795627
"response": []
796628
},
797629
"slm.stop": {
798630
"request": [
799-
"Request: missing json spec query parameter 'master_timeout'",
800631
"Request: missing json spec query parameter 'timeout'"
801632
],
802633
"response": []
@@ -819,12 +650,6 @@
819650
],
820651
"response": []
821652
},
822-
"tasks.list": {
823-
"request": [
824-
"Request: query parameter 'master_timeout' does not exist in the json spec"
825-
],
826-
"response": []
827-
},
828653
"text_structure.find_field_structure": {
829654
"request": [
830655
"Missing request & response"
@@ -870,18 +695,6 @@
870695
],
871696
"response": []
872697
},
873-
"watcher.start": {
874-
"request": [
875-
"Request: missing json spec query parameter 'master_timeout'"
876-
],
877-
"response": []
878-
},
879-
"watcher.stop": {
880-
"request": [
881-
"Request: missing json spec query parameter 'master_timeout'"
882-
],
883-
"response": []
884-
},
885698
"watcher.update_settings": {
886699
"request": [
887700
"Missing request & response"

specification/_global/search_shards/SearchShardsRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { RequestBase } from '@_types/Base'
2121
import { ExpandWildcards, Indices, Routing } from '@_types/common'
22+
import {Duration} from "@_types/Time";
2223

2324
/**
2425
* Get the search shards.
@@ -63,6 +64,11 @@ export interface Request extends RequestBase {
6364
* @server_default false
6465
*/
6566
local?: boolean
67+
/**
68+
* Period to wait for a connection to the master node.
69+
* @server_default 30s
70+
*/
71+
master_timeout?: Duration
6672
/**
6773
* Specifies the node or shard the operation should be performed on.
6874
* Random by default.

0 commit comments

Comments
 (0)