This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new d5288985ca7 branch-3.0: [fix](auth)Ignore replay edit log error of auth #49348 (#49786) d5288985ca7 is described below commit d5288985ca7946b3242c30ced6a55fc87266167a Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Mon Apr 7 16:55:09 2025 +0800 branch-3.0: [fix](auth)Ignore replay edit log error of auth #49348 (#49786) Cherry-picked from #49348 Co-authored-by: zhangdong <zhangd...@selectdb.com> --- .../main/java/org/apache/doris/mysql/privilege/Auth.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java index 9c898338358..457d7066445 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java @@ -559,8 +559,12 @@ public class Auth implements Writable { dropUserInternal(stmt.getUserIdentity(), stmt.isSetIfExists(), false); } - public void replayDropUser(UserIdentity userIdent) throws DdlException { - dropUserInternal(userIdent, false, true); + public void replayDropUser(UserIdentity userIdent) { + try { + dropUserInternal(userIdent, false, true); + } catch (DdlException e) { + LOG.error("should not happen", e); + } } private void dropUserInternal(UserIdentity userIdent, boolean ignoreIfNonExists, boolean isReplay) @@ -1114,8 +1118,12 @@ public class Auth implements Writable { updateUserPropertyInternal(stmt.getUser(), properties, false /* is replay */); } - public void replayUpdateUserProperty(UserPropertyInfo propInfo) throws UserException { - updateUserPropertyInternal(propInfo.getUser(), propInfo.getProperties(), true /* is replay */); + public void replayUpdateUserProperty(UserPropertyInfo propInfo) { + try { + updateUserPropertyInternal(propInfo.getUser(), propInfo.getProperties(), true /* is replay */); + } catch (UserException e) { + LOG.error("should not happened", e); + } } public void updateUserPropertyInternal(String user, List<Pair<String, String>> properties, boolean isReplay) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org