From 279baa0284b17126117f666463cb19e9e5d216d2 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 13 Oct 2016 13:21:57 -0400 Subject: [PATCH] Add a flush to test in _cat/indices.asciidoc We test that sorting by `store.size` works but sometimes the sizes aren't what we expect. At least in CI: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-unix-compatibility/os=opensuse/101/console https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+multijob-unix-compatibility/os=centos/100/console I haven't been able to reproduce it locally but adding a `_flush` won't hurt and might make the inconsistency vanish. --- docs/reference/cat/indices.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/cat/indices.asciidoc b/docs/reference/cat/indices.asciidoc index 91965f7b6fc..11dfb3c7c6a 100644 --- a/docs/reference/cat/indices.asciidoc +++ b/docs/reference/cat/indices.asciidoc @@ -67,6 +67,7 @@ GET /_cat/indices?v&s=store.size:desc -------------------------------------------------- // CONSOLE // TEST[continued] +// TEST[s/^/POST _flush\n/] Which looks like: