yujun777 commented on code in PR #34889:
URL: https://github.com/apache/doris/pull/34889#discussion_r1618610496


##########
be/src/olap/tablet_manager.cpp:
##########
@@ -1200,6 +1266,14 @@ bool TabletManager::_move_tablet_to_trash(const 
TabletSharedPtr& tablet) {
             return false;
         }
         if (exists) {
+            if (check_st.is<META_KEY_NOT_FOUND>()) {
+                LOG(INFO) << "could not find tablet meta in rocksdb, so just 
delete it path "
+                          << "tablet_id=" << tablet->tablet_id()
+                          << ", schema_hash=" << tablet->schema_hash()
+                          << ", delete tablet_path=" << tablet_path;
+                
RETURN_IF_ERROR(io::global_local_filesystem()->delete_directory(tablet_path));

Review Comment:
   1. if tablet_path's parent dir (tablet_id/) is empty, delete its parent dir 
too.
   2. remove RETURN_IF_ERROR,  even if delete directory failed, return true 
here,  let gc thread delete this directory later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to