caiconghui commented on a change in pull request #6416: URL: https://github.com/apache/incubator-doris/pull/6416#discussion_r699112144
########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java ########## @@ -260,17 +251,11 @@ private void processModifyColumnComment(Database db, OlapTable tbl, List<AlterCl } } - public void replayModifyComment(ModifyCommentOperationLog operation) { + public void replayModifyComment(ModifyCommentOperationLog operation) throws MetaNotFoundException { Review comment: @ccoffline how about check db or table state after getting db or table lock , so that the edit log will always keep in order? we don't need some much check code? ########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java ########## @@ -260,17 +251,11 @@ private void processModifyColumnComment(Database db, OlapTable tbl, List<AlterCl } } - public void replayModifyComment(ModifyCommentOperationLog operation) { + public void replayModifyComment(ModifyCommentOperationLog operation) throws MetaNotFoundException { Review comment: @ccoffline so we only need to simply check null for getdb and get table in replay operation and just simply skip the following operation? ########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java ########## @@ -260,17 +251,11 @@ private void processModifyColumnComment(Database db, OlapTable tbl, List<AlterCl } } - public void replayModifyComment(ModifyCommentOperationLog operation) { + public void replayModifyComment(ModifyCommentOperationLog operation) throws MetaNotFoundException { Review comment: @ccoffline so we only need to simply check null for getdb and get table in replay operation and just simply skip the following operation? now, the only way that fe may crash is with that replay operation? ########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java ########## @@ -260,17 +251,11 @@ private void processModifyColumnComment(Database db, OlapTable tbl, List<AlterCl } } - public void replayModifyComment(ModifyCommentOperationLog operation) { + public void replayModifyComment(ModifyCommentOperationLog operation) throws MetaNotFoundException { Review comment: @ccoffline so we only need to simply check null for getdb and get table in replay operation and just simply skip the following operation? now, the only way that fe may crash is with that replay operation when fe restart? ########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java ########## @@ -260,17 +251,11 @@ private void processModifyColumnComment(Database db, OlapTable tbl, List<AlterCl } } - public void replayModifyComment(ModifyCommentOperationLog operation) { + public void replayModifyComment(ModifyCommentOperationLog operation) throws MetaNotFoundException { Review comment: is it better to split this PR into two PRs ? one for code refactor and another for db and table null check, I think it is easy to review and not-error-prone when PR is not so big? @ccoffline -- 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