mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
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:
parent
0e1f367164
commit
2a7b7a811a
@ -240,6 +240,7 @@ LoadWithStrategy(const std::vector<std::string>& remote_files,
|
|||||||
} catch (std::exception& e) {
|
} catch (std::exception& e) {
|
||||||
LOG_INFO("[StorageV2] failed to load data from remote: {}", e.what());
|
LOG_INFO("[StorageV2] failed to load data from remote: {}", e.what());
|
||||||
channel->close();
|
channel->close();
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user