mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +00:00
Move flush in _cat/indices docs tests (#21117)
Moves the `_flush` in the `_cat/indices` snippets testing framework to the very first test. We need to flush super early because index size is cached for a few seconds so we really need to read a consistent size on the first read so we can sort by it properly. Closes #21062
This commit is contained in:
parent
436ba7b5fc
commit
a4b3a95f5a
@ -10,7 +10,12 @@ GET /_cat/indices/twi*?v&s=index
|
||||
--------------------------------------------------
|
||||
// CONSOLE
|
||||
// TEST[setup:huge_twitter]
|
||||
// TEST[s/^/POST _flush\n/]
|
||||
// TEST[s/^/PUT twitter2\n{"settings": {"number_of_replicas": 0}}\n/]
|
||||
// We flush very early here because the index's size is cached and we sort on
|
||||
// size below. So to get a realistic sort on size we need to flush here or else
|
||||
// the size is just whatever portion of the index is pushed out of memory
|
||||
// during test setup which isn't deterministic.
|
||||
|
||||
Might respond with:
|
||||
|
||||
@ -67,7 +72,6 @@ GET /_cat/indices?v&s=store.size:desc
|
||||
--------------------------------------------------
|
||||
// CONSOLE
|
||||
// TEST[continued]
|
||||
// TEST[s/^/POST _flush\n/]
|
||||
|
||||
Which looks like:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user