mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
a3ad592198
Replaced also wait for yellow with wait for green when using no replicas. get_source/60_realtime_refresh tests per shard refresh using refresh:true and realtime:true in get api. We might run into troubles though if we have a replica that gets initialized after a doc was indexed without a refresh, as that doc will be found when searching against that specific replica shard (as a refresh happens automatically before a replica gets exposed as started).
51 lines
808 B
YAML
51 lines
808 B
YAML
---
|
|
"Realtime Refresh":
|
|
|
|
- do:
|
|
indices.create:
|
|
index: test_1
|
|
body:
|
|
settings:
|
|
index:
|
|
refresh_interval: -1
|
|
number_of_replicas: 0
|
|
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
index:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
body: { foo: bar }
|
|
|
|
- do:
|
|
exists:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
realtime: 1
|
|
|
|
- is_true: ''
|
|
|
|
- do:
|
|
exists:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
realtime: 0
|
|
|
|
- is_false: ''
|
|
|
|
- do:
|
|
exists:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
realtime: 0
|
|
refresh: 1
|
|
|
|
- is_true: ''
|