Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
3d19006cfa
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  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
 
+/////////////////////
+
+Clear the settings so they don't leak into subsequent snippets.
+
+[source,js]
+--------------------------------------------------
+PUT _cluster/settings
+{
+  "transient": {
+    "cluster.*" : null
+  }
+}
+--------------------------------------------------
+// CONSOLE
+// TEST[continued]
+
+/////////////////////