From 2a7b7a811a86e50cbdbd1755b3650e70a5b0f16a Mon Sep 17 00:00:00 2001 From: congqixia Date: Fri, 25 Jul 2025 17:40:55 +0800 Subject: [PATCH] fix: [StorageV2] Throw exception when read rg fails (#43561) Related to #43261 Read error with catched in `LoadWithStrategy`. Caller could not detect read failure when some error occurred. This patch make `LoadWithStrategy` throw ex instead of swallowing it. Signed-off-by: Congqi Xia --- internal/core/src/segcore/memory_planner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/src/segcore/memory_planner.cpp b/internal/core/src/segcore/memory_planner.cpp index 100de320e2..039445c66c 100644 --- a/internal/core/src/segcore/memory_planner.cpp +++ b/internal/core/src/segcore/memory_planner.cpp @@ -240,6 +240,7 @@ LoadWithStrategy(const std::vector& remote_files, } catch (std::exception& e) { LOG_INFO("[StorageV2] failed to load data from remote: {}", e.what()); channel->close(); + throw e; } }