Improve panic error readability (#20339)

/kind improvement

Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>

Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>
This commit is contained in:
Ten Thousand Leaves 2022-11-08 15:37:03 +08:00 committed by GitHub
parent 7e56e7a976
commit 3d25a8dc03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,8 @@ SegmentSealedImpl::check_search(const query::Plan* plan) const {
AssertInfo(plan->extra_info_opt_.has_value(), "Extra info of search plan doesn't have value");
if (!is_system_field_ready()) {
PanicInfo("Segment " + std::to_string(this->id_) + " System Field RowID or Timestamp is not loaded");
PanicInfo("failed to load row ID or timestamp, potential missing bin logs or empty segments. Segment ID = " +
std::to_string(this->id_));
}
auto& request_fields = plan->extra_info_opt_.value().involved_fields_;