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 <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2025-07-25 17:40:55 +08:00 committed by GitHub
parent 0e1f367164
commit 2a7b7a811a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,6 +240,7 @@ LoadWithStrategy(const std::vector<std::string>& remote_files,
} catch (std::exception& e) {
LOG_INFO("[StorageV2] failed to load data from remote: {}", e.what());
channel->close();
throw e;
}
}