From 33f2819b429d21835291f63e4e005398232aedf8 Mon Sep 17 00:00:00 2001 From: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:57:29 +0200 Subject: [PATCH 1/2] [ML] Downgrade redundant CStateDecompressor empty-state log to INFO The LOG_ERROR at readHeader() for missing or empty compressed state documents was never addressed in #2895 and is redundant with parseNext() diagnostics. Downgrade to INFO so routine categorizer state restore misses no longer trip the serverless ERROR log-rate promotion gate. Relates #2875 --- docs/CHANGELOG.asciidoc | 1 + lib/core/CStateDecompressor.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.asciidoc b/docs/CHANGELOG.asciidoc index e66c892e42..0b50895411 100644 --- a/docs/CHANGELOG.asciidoc +++ b/docs/CHANGELOG.asciidoc @@ -38,6 +38,7 @@ * Harden pytorch_inference with TorchScript model graph validation. (See {ml-pull}3008[#3008].) * Better handling of invalid JSON state documents (See {ml-pull}[]#2895].) +* Downgrade redundant "Failed to find valid JSON" log in `CStateDecompressor` from ERROR to INFO for empty or missing state documents (See {ml-issue}2875[#2875].) * Better error handling regarding quantiles state documents (See {ml-pull}[#2894]) == {es} version 9.3.0 diff --git a/lib/core/CStateDecompressor.cc b/lib/core/CStateDecompressor.cc index 2d1f926551..acea58898e 100644 --- a/lib/core/CStateDecompressor.cc +++ b/lib/core/CStateDecompressor.cc @@ -149,7 +149,7 @@ bool CStateDecompressor::CDechunkFilter::parseNext() { bool CStateDecompressor::CDechunkFilter::readHeader() { if (this->parseNext() == false) { - LOG_ERROR(<< "Failed to find valid JSON"); + LOG_INFO(<< "No valid JSON found in compressed state stream (empty or missing state document)"); m_Initialised = false; m_IStream.reset(); ++m_CurrentDocNum; From 8ab30a8266ca76d9f07c44dcb5f20aed5324adc4 Mon Sep 17 00:00:00 2001 From: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com> Date: Tue, 21 Jul 2026 20:31:23 +0200 Subject: [PATCH 2/2] Update CHANGELOG.asciidoc --- docs/CHANGELOG.asciidoc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/CHANGELOG.asciidoc b/docs/CHANGELOG.asciidoc index 0b50895411..e66c892e42 100644 --- a/docs/CHANGELOG.asciidoc +++ b/docs/CHANGELOG.asciidoc @@ -38,7 +38,6 @@ * Harden pytorch_inference with TorchScript model graph validation. (See {ml-pull}3008[#3008].) * Better handling of invalid JSON state documents (See {ml-pull}[]#2895].) -* Downgrade redundant "Failed to find valid JSON" log in `CStateDecompressor` from ERROR to INFO for empty or missing state documents (See {ml-issue}2875[#2875].) * Better error handling regarding quantiles state documents (See {ml-pull}[#2894]) == {es} version 9.3.0