From 542b6a008436f0b361dcf2d2b314b49c4999b04b Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Sat, 16 May 2026 19:08:23 +0900 Subject: [PATCH] =?UTF-8?q?fix(search):=20classifier=20error=20log=20type+?= =?UTF-8?q?repr=20(empty-msg=20exception=20=EC=A7=84=EB=8B=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-Hermes-Docsrv-Search-1 Layer 1 fixture 가 classifier error: <빈 메시지> 빈번 발생 보고. isolation 직접 호출은 3/3 성공, 동시 부하 (ask endpoint 의 classifier + evidence parallel) 시에만 발생. Exception type + repr 캡처해서 root cause 식별 (httpx.ReadTimeout / TimeoutError / ConnectionError / 기타 무엇인지). 식별 후 후속 PR (DS-Classifier-Concurrent-Load-1) 에서 본격 mitigation. --- app/services/search/classifier_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/search/classifier_service.py b/app/services/search/classifier_service.py index a0c43ef..9661a48 100644 --- a/app/services/search/classifier_service.py +++ b/app/services/search/classifier_service.py @@ -113,7 +113,7 @@ async def classify( if _failure_count >= CIRCUIT_THRESHOLD: _circuit_open_until = time.time() + CIRCUIT_RECOVERY_SEC logger.error(f"classifier circuit OPEN for {CIRCUIT_RECOVERY_SEC}s") - logger.warning(f"classifier error: {e}") + logger.warning("classifier error: type=%s repr=%r", type(e).__name__, e) return ClassifierResult( "error", None, [], [], (time.perf_counter() - t_start) * 1000,