This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b08e82ee8dc [fix](table) Move drop editlog in table lock (#55705)
b08e82ee8dc is described below

commit b08e82ee8dc152d183527bec4c39640e4437cf45
Author: deardeng <[email protected]>
AuthorDate: Sat Sep 6 17:04:15 2025 +0800

    [fix](table) Move drop editlog in table lock (#55705)
---
 .../src/main/java/org/apache/doris/datasource/InternalCatalog.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
index d5895948669..3f4abbc474d 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
@@ -987,13 +987,13 @@ public class InternalCatalog implements 
CatalogIf<Database> {
                     costTimes.put("5:getRecycleTimeById", 
watch.getSplitTime());
                 }
             }
+            DropInfo info = new DropInfo(db.getId(), table.getId(), tableName, 
isView, forceDrop, recycleTime);
+            Env.getCurrentEnv().getEditLog().logDropTable(info);
         } finally {
             table.writeUnlock();
         }
 
-        DropInfo info = new DropInfo(db.getId(), table.getId(), tableName, 
isView, forceDrop, recycleTime);
         Env.getCurrentEnv().getMtmvService().dropTable(table);
-        Env.getCurrentEnv().getEditLog().logDropTable(info);
         if (Config.isCloudMode()) {
             ((CloudGlobalTransactionMgr) Env.getCurrentGlobalTransactionMgr())
                     .clearTableLastTxnId(db.getId(), table.getId());


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

Reply via email to