-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflush.yml
37 lines (37 loc) · 935 Bytes
/
flush.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
requires:
stack: true
serverless: false
---
setup:
- do:
indices.create:
index: flush-index
body:
settings:
number_of_shards: 1
index.translog.flush_threshold_size: 160b
---
teardown:
- do:
indices.delete:
index: flush-index
---
"Flush stats":
- do:
indices.flush:
index: flush-index
- do:
indices.stats: { index: flush-index }
- match: { indices.flush-index.primaries.flush.periodic: 0 }
- match: { indices.flush-index.primaries.flush.total: 1 }
- do:
index:
index: flush-index
id: "1"
body: { "message": "a long message to make a periodic flush happen after this index operation" }
- do:
indices.stats: { index: flush-index }
# periodic flush is async
- gte: { indices.flush-index.primaries.flush.periodic: 0 }
- gte: { indices.flush-index.primaries.flush.total: 1 }