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. 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to