linrrzqqq commented on code in PR #69255:
URL: https://github.com/apache/doris/pull/69255#discussion_r4550704495


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -647,6 +658,7 @@ public void recoverDatabase(String dbName, long dbId, 
String newDbName) throws D
             if (!Strings.isNullOrEmpty(newDbName)) {
                 db.setNameWithLock(newDbName);
             }
+            Env.getCurrentEnv().registerDbFunctionsById(db);

Review Comment:
   这种情况感觉是 recovery 的问题,如果锁超时,应该把 db 放回回收站,而不是删除,不然恢复失败就直接把回收站里的 db 搞没了



-- 
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