diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 746a917a80af56..086baa642c8075 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -881,9 +881,13 @@ Status Tablet::capture_consistent_versions(const Version& spec_version, // so to avoid print too many logs. if (version_path != nullptr) { LOG(WARNING) << "tablet:" << tablet_id() - << ", version already has been merged. spec_version: " << spec_version; + << ", version already has been merged. spec_version: " << spec_version + << ", max_version: " << max_version_unlocked(); } - status = Status::Error("missed_versions is empty"); + status = Status::Error( + "missed_versions is empty, spec_version " + "{}, max_version {}, tablet_id {}", + spec_version.second, max_version_unlocked().second, tablet_id()); } else { if (version_path != nullptr) { LOG(WARNING) << "status:" << status << ", tablet:" << tablet_id() diff --git a/be/src/vec/exec/scan/new_olap_scanner.cpp b/be/src/vec/exec/scan/new_olap_scanner.cpp index 7992ab1a4566bb..0726c71e45daa9 100644 --- a/be/src/vec/exec/scan/new_olap_scanner.cpp +++ b/be/src/vec/exec/scan/new_olap_scanner.cpp @@ -186,9 +186,7 @@ Status NewOlapScanner::init() { _state->skip_missing_version()); if (!st.ok()) { LOG(WARNING) << "fail to init reader.res=" << st; - return Status::InternalError( - "failed to initialize storage reader. tablet_id={} : {}", - tablet->tablet_id(), st.to_string()); + return st; } } if (!_state->skip_delete_predicate()) {