New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ER_ACCESS_DENIED_ERROR differ behavior to mysql/mysql2
#34
Comments
|
That's because implementation basis is different : MariaDB pool implementation completely differs to avoid creating some huge number of connection when having query pike : To explain : on mysql2, that would mean the first query will use the 5 idle connections, then waiting to create 45 connections. 45 queries have waited for connection creation to fulfill, taking longer time, and resulting in more connection in the pool. In mariadb implementation : Queries have taken less time to fulfill (1ms), and the pool doesn't force the creation of connections if not really needed. Of course, if the pike takes longer time, the number of connection will increase. (And that has been thought to have another option Still, if a connection fails because of authentication, that must be logged. I'll think on how to change that |
|
sorry, the answer wasn't finished when send. updated now. |
|
Does this commit solve the issue presented in this ticket? |
|
no, this issue is still to be solved. Next week ! |
|
and, I see the code, since connection.connect() return Promise, if connect occur error and not await createConnection, node will show Unhandle-promise-warning |
|
corrected with 59fafd1 |
in mysql2, both promise and callback
createPoolare synchronize.and throw error earlier when
ACCESS_DENIED,in mariadb need wait util first use and then timeout throw error.
The text was updated successfully, but these errors were encountered: