1 --- 2 "Index synced flush rest test": 3 - do: 4 indices.create: 5 index: testing 6 body: 7 settings: 8 index: 9 number_of_replicas: 0 10 11 - do: 12 cluster.health: 13 wait_for_status: green 14 - do: 15 indices.flush_synced: 16 index: testing 17 18 - is_false: _shards.failed 19 20 - do: 21 indices.stats: {level: shards} 22 23 - is_true: indices.testing.shards.0.0.commit.user_data.sync_id 24 25 --- 26 "Flush stats": 27 - skip: 28 version: " - 6.2.99" 29 reason: periodic flush stats is introduced in 6.3.0 30 - do: 31 indices.create: 32 index: test 33 body: 34 settings: 35 number_of_shards: 1 36 index.translog.flush_threshold_size: 160b 37 - do: 38 indices.flush: 39 index: test 40 - do: 41 indices.stats: { index: test } 42 - match: { indices.test.primaries.flush.periodic: 0 } 43 - match: { indices.test.primaries.flush.total: 1 } 44 - do: 45 index: 46 index: test 47 type: doc 48 id: 1 49 body: { "message": "a long message to make a periodic flush happen after this index operation" } 50 - do: 51 indices.stats: { index: test } 52 # periodic flush is async 53 - gte: { indices.test.primaries.flush.periodic: 0 } 54 - gte: { indices.test.primaries.flush.total: 1 }