From 394be9e360aada717c04a5da370fa09ebb5f190b Mon Sep 17 00:00:00 2001 From: hye-on Date: Mon, 27 Jan 2025 17:49:32 +0900 Subject: [PATCH] Add version specific schema handling for total_indexing_buffer and total_indexing_buffer_in_bytes fields Signed-off-by: hye-on --- spec/schemas/nodes.info.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spec/schemas/nodes.info.yaml b/spec/schemas/nodes.info.yaml index 5a71faa24..c4e9a39f9 100644 --- a/spec/schemas/nodes.info.yaml +++ b/spec/schemas/nodes.info.yaml @@ -66,9 +66,17 @@ components: $ref: '#/components/schemas/NodeThreadPoolInfo' total_indexing_buffer: description: Total heap allowed to be used to hold recently indexed documents before they must be written to disk. This size is a shared pool across all shards on this node, and is controlled by Indexing Buffer settings. - $ref: '_common.yaml#/components/schemas/HumanReadableByteCount' + oneOf: + - $ref: '_common.yaml#/components/schemas/ByteCount' + x-version-removed: 3.0 + - $ref: '_common.yaml#/components/schemas/HumanReadableByteCount' + x-version-added: 3.0 total_indexing_buffer_in_bytes: - $ref: '_common.yaml#/components/schemas/ByteCount' + oneOf: + - $ref: '_common.yaml#/components/schemas/HumanReadableByteCount' + x-version-removed: 3.0 + - $ref: '_common.yaml#/components/schemas/ByteCount' + x-version-added: 3.0 transport: $ref: '#/components/schemas/NodeInfoTransport' transport_address: