This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 4b02f3e6301 migrate disk check old tablet had deleted (#34030)
4b02f3e6301 is described below
commit 4b02f3e6301139aaf9f20b15a5c9a7163bd7bc3b
Author: yujun <[email protected]>
AuthorDate: Thu Apr 25 11:13:21 2024 +0800
migrate disk check old tablet had deleted (#34030)
---
be/src/olap/task/engine_storage_migration_task.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/be/src/olap/task/engine_storage_migration_task.cpp
b/be/src/olap/task/engine_storage_migration_task.cpp
index f2896e05775..60ab1dfe796 100644
--- a/be/src/olap/task/engine_storage_migration_task.cpp
+++ b/be/src/olap/task/engine_storage_migration_task.cpp
@@ -160,6 +160,10 @@ Status
EngineStorageMigrationTask::_gen_and_write_header_to_hdr_file(
}
Status EngineStorageMigrationTask::_reload_tablet(const std::string&
full_path) {
+ if (_tablet->tablet_state() == TABLET_SHUTDOWN) {
+ return Status::Error<ErrorCode::INTERNAL_ERROR, false>("tablet {} has
deleted",
+
_tablet->tablet_id());
+ }
// need hold migration lock and push lock outside
int64_t tablet_id = _tablet->tablet_id();
int32_t schema_hash = _tablet->schema_hash();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]