Browse Source

Docs: Clear watermarks after setting them (#28402)

Clear the disk watermark after the snippet showing users how to set it.
Without this our tests will fail if the disks have less than 10GB free.

Closes #28325
Nik Everett 7 years ago
parent
commit
3d19006cfa
1 changed files with 17 additions and 0 deletions
  1. 17 0
      docs/reference/modules/cluster/disk_allocator.asciidoc

+ 17 - 0
docs/reference/modules/cluster/disk_allocator.asciidoc

@@ -98,3 +98,20 @@ PUT _cluster/settings
 --------------------------------------------------
 --------------------------------------------------
 // CONSOLE
 // CONSOLE
 
 
+/////////////////////
+
+Clear the settings so they don't leak into subsequent snippets.
+
+[source,js]
+--------------------------------------------------
+PUT _cluster/settings
+{
+  "transient": {
+    "cluster.*" : null
+  }
+}
+--------------------------------------------------
+// CONSOLE
+// TEST[continued]
+
+/////////////////////