This is an automated email from the ASF dual-hosted git repository. morningman 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 dd0c2d81da5 [Fix](Authenticator)defaultAuthenticator not init (#43057) dd0c2d81da5 is described below commit dd0c2d81da52b546cece1af6f836dd4ae22bdf22 Author: Calvin Kirs <guoqi...@selectdb.com> AuthorDate: Tue Feb 18 23:15:03 2025 +0800 [Fix](Authenticator)defaultAuthenticator not init (#43057) ### What problem does this PR solve? The `defaultAuthenticator` is not initialized. When a configured authentication plugin implements the `canDea`l method and returns `false`, the `defaultAuthenticator` will be used, resulting in a login failure. The client exception message is `RROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 2`. This issue only affects users who use non-built-in authentication plugins that implement `canDeal` and return false under certain circumstances. https://github.com/apache/doris/pull/40113 introduced this issue --- .../java/org/apache/doris/mysql/authenticate/AuthenticatorManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/AuthenticatorManager.java b/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/AuthenticatorManager.java index de703b306c6..8ba711e6655 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/AuthenticatorManager.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/authenticate/AuthenticatorManager.java @@ -44,7 +44,7 @@ public class AuthenticatorManager { public AuthenticatorManager(String type) { LOG.info("Authenticate type: {}", type); - + defaultAuthenticator = new DefaultAuthenticator(); if (authTypeAuthenticator == null) { synchronized (AuthenticatorManager.class) { if (authTypeAuthenticator == null) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org