From 3d25a8dc0388618742e43fca8064144d2fa747c5 Mon Sep 17 00:00:00 2001 From: Ten Thousand Leaves <69466447+soothing-rain@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:37:03 +0800 Subject: [PATCH] Improve panic error readability (#20339) /kind improvement Signed-off-by: Yuchen Gao Signed-off-by: Yuchen Gao --- internal/core/src/segcore/SegmentSealedImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/core/src/segcore/SegmentSealedImpl.cpp b/internal/core/src/segcore/SegmentSealedImpl.cpp index b81b47cc21..1234b62972 100644 --- a/internal/core/src/segcore/SegmentSealedImpl.cpp +++ b/internal/core/src/segcore/SegmentSealedImpl.cpp @@ -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_;