Comments (8)
Okay, but it's not related to the warnings. I could reproduce the issue though. Looking into it.
from mysql.
Sure.
There seem to be additional problems using the limit option. If the limit is lesser than the number of queries, then (queries - limit) promises won't resolve, and the script get stuck in the driver loop, while not seeing any activity in the processlist in MySQL.
from mysql.
Alright, found the "real" cause behind the problem.
If a query results in a warning or such, then the queue will get stuck in the driver loop.
Query OK, 0 rows affected, 2 warnings (0.00 sec)
Query OK, 5 rows affected, Duplicates: 0, 2 warnings (0.00 sec)
in: 5b 0 0 0 a 35 2e 36 2e 33 33 2d 30 75 62 75 6e 74 75 30 2e 31 34 2e 30 34 2e 31 0 5d 0 0 0 3d 4c 47 5c 7b 77 62 65 0 ff f7 8 2 0 7f 80 15 0 0 0 0 0 0 0 0 0 0 56 5f 5a 28 54 50 72 6f 57 44 2e 59 0 6d 79 73 71 6c 5f 6e 61 74 69 76 65 5f 70 61 73 73 77 6f 72 64 0 len: 91 string(91) "
5.6.33-0ubuntu0.14.04.1.]...=LG\{wbe.??...?...........V_Z(TProWD.Y.mysql_native_password."
in: 5b 0 0 0 a 35 2e 36 2e 33 33 2d 30 75 62 75 6e 74 75 30 2e 31 34 2e 30 34 2e 31 0 5e 0 0 0 5d 44 7b 5f 4c 3e 2f 71 0 ff f7 8 2 0 7f 80 15 0 0 0 0 0 0 0 0 0 0 6c 4a 6d 65 32 69 3a 26 4f 3b 79 70 0 6d 79 73 71 6c 5f 6e 61 74 69 76 65 5f 70 61 73 73 77 6f 72 64 0 len: 91 string(91) "
5.6.33-0ubuntu0.14.04.1.^...]D{_L>/q.??...?...........lJme2i:&O;yp.mysql_native_password."
out: 42 0 0 1 28 a2 27 0 0 0 80 0 2d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 72 6f 6f 74 0 14 6e 99 5b 15 25 53 c4 59 9e dd 5e 15 5a d0 c c8 e6 1e f3 f8 46 52 41 44 54 41 44 0 len: 70 string(70) "B...(?'...?.-.......................root..n?[.%S?Y??^.Z?.??.??FRADTAD."
out: 42 0 0 1 28 a2 27 0 0 0 80 0 2d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 72 6f 6f 74 0 14 ba 3f 46 35 dd a5 4 1 1b cf 6c eb 88 82 ff eb f0 7f 34 ee 46 52 41 44 54 41 44 0 len: 70 string(70) "B...(?'...?.-.......................root..??F5ݥ...?l눂???4?FRADTAD."
in: 7 0 0 2 0 0 0 2 0 0 0 len: 7 string(7) "......."
out: 64 0 0 0 3 49 4e 53 45 52 54 20 49 4e 54 4f 20 6d 79 73 71 6c 2e 75 73 65 72 20 28 48 6f 73 74 2c 20 55 73 65 72 29 20 56 41 4c 55 45 53 28 22 6c 6f 63 61 6c 68 6f 73 74 22 2c 20 22 72 6f 6f 74 22 29 20 4f 4e 20 44 55 50 4c 49 43 41 54 45 20 4b 45 59 20 55 50 44 41 54 45 20 55 73 65 72 20 3d 20 55 73 65 72 len: 104 string(104) "d....INSERT INTO mysql.user (Host, User) VALUES("localhost", "root") ON DUPLICATE KEY UPDATE User = User"
in: 7 0 0 2 0 0 0 2 0 0 0 len: 7 string(7) "......."
out: 64 0 0 0 3 49 4e 53 45 52 54 20 49 4e 54 4f 20 6d 79 73 71 6c 2e 75 73 65 72 20 28 48 6f 73 74 2c 20 55 73 65 72 29 20 56 41 4c 55 45 53 28 22 6c 6f 63 61 6c 68 6f 73 74 22 2c 20 22 72 6f 6f 74 22 29 20 4f 4e 20 44 55 50 4c 49 43 41 54 45 20 4b 45 59 20 55 50 44 41 54 45 20 55 73 65 72 20 3d 20 55 73 65 72 len: 104 string(104) "d....INSERT INTO mysql.user (Host, User) VALUES("localhost", "root") ON DUPLICATE KEY UPDATE User = User"
in: 7 0 0 1 0 0 0 2 0 3 0 len: 7 string(7) "......."
int(1)
in: 7 0 0 1 0 0 0 2 0 3 0 len: 7 string(7) "......."
int(2)
from mysql.
Can you please verify whether 81195e2 fixes your issue? Thanks :-)
I'm a bit stunned about that bug that it hasn't been discovered yet, but probably nobody bothered with connection limits before and 99% of the queries are handled via prepare() mechanism I guess, so that it just never happened to be an issue (as the Pool would just create new connections then and clean the old ones up after a while …).
from mysql.
Yea, that solved the issue. Thanks :)
from mysql.
Can you please tag this release?
from mysql.
I'll tag later - for some reason tests are failing now...
from mysql.
@NicklasWallgren tagged now :-)
from mysql.
Related Issues (20)
- Implement Support for Protocol::AuthSwitchRequest
- Can we use Named parameters in SQL queries with amphp\mysql package? HOT 1
- Can we have lastInsertId returned in a different method when UUID is used as Primary Key? HOT 4
- Connection closed unexpectedly HOT 4
- Values not saved when named parameters are used in SQL insert queries with amphp\mysql package HOT 3
- about wrapping CommandResult HOT 1
- multi query with prepared statement HOT 5
- Different query result under transaction
- v3 not work HOT 3
- Connection open + one select + close takes about 30 ms HOT 5
- Prepared Statements don't work with DATETIME columns HOT 2
- Reaching connection limit results in protocol version exception HOT 1
- Incorrect handling of fractional seconds in Datetime, and Timestamp columns HOT 3
- Connection closed unexpectedly HOT 2
- Cannot install HOT 5
- Unable to connect to AWS Aurora MySQL 3.04.0 (MySQL 8.0.28) over TLS HOT 5
- Connection closed unexpectedly HOT 4
- Closing database connection while query is still pending HOT 2
- Infinite recursion when iterating HOT 5
- v2: is it possible to set a limit on the max number of parallel connections? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql.