Skip to content

Commit 02d4610

Browse files
committed
use bulk api to ensure the bulk api order is the same on the shard.
1 parent ce423a3 commit 02d4610

File tree

1 file changed

+12
-38
lines changed
  • x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/patterntext

1 file changed

+12
-38
lines changed

x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/patterntext/30_template_id.yml

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,46 +18,20 @@ setup:
1818
type: pattern_text
1919

2020
- do:
21-
index:
21+
bulk:
2222
index: test
23-
id: "1"
23+
refresh: true
2424
body:
25-
"@timestamp": 2025-07-17T00:00:00Z
26-
27-
- do:
28-
index:
29-
index: test
30-
id: "2"
31-
body:
32-
"foo": "Found 5 errors for service [cheddar1]"
33-
"@timestamp": 2025-07-17T00:00:01Z
34-
35-
- do:
36-
index:
37-
index: test
38-
id: "3"
39-
body:
40-
"foo": "[2020-08-18T00:58:56] Found 123 errors for service [cheddar1]"
41-
"@timestamp": 2025-07-17T00:00:02Z
42-
43-
- do:
44-
index:
45-
index: test
46-
id: "4"
47-
body:
48-
"foo": "Found some errors for cheddar data service"
49-
"@timestamp": 2025-07-17T00:00:03Z
50-
51-
- do:
52-
index:
53-
index: test
54-
id: "5"
55-
body:
56-
"foo": "Found 123 errors for service [gorgonzola-24]"
57-
"@timestamp": 2025-07-17T00:00:04Z
58-
59-
- do:
60-
indices.refresh: {}
25+
- { "index": { "_id": "1" } }
26+
- { "@timestamp": "2025-07-17T00:00:00Z" }
27+
- { "index": { "_id": "2" } }
28+
- { "@timestamp": "2025-07-17T00:00:01Z", "foo": "Found 5 errors for service [cheddar1]" }
29+
- { "index": { "_id": "3" } }
30+
- { "@timestamp": "2025-07-17T00:00:02Z", "foo": "[2020-08-18T00:58:56] Found 123 errors for service [cheddar1]" }
31+
- { "index": { "_id": "4" } }
32+
- { "@timestamp": "2025-07-17T00:00:03Z", "foo": "Found some errors for cheddar data service" }
33+
- { "index": { "_id": "5" } }
34+
- { "@timestamp": "2025-07-17T00:00:04Z", "foo": "Found 123 errors for service [gorgonzola-24]" }
6135

6236
---
6337
Field caps:

0 commit comments

Comments
 (0)