Giter Club home page Giter Club logo

Comments (8)

bwoebi avatar bwoebi commented on June 18, 2024 1

Okay, but it's not related to the warnings. I could reproduce the issue though. Looking into it.

from mysql.

NicklasWallgren avatar NicklasWallgren commented on June 18, 2024

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.

NicklasWallgren avatar NicklasWallgren commented on June 18, 2024

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.

bwoebi avatar bwoebi commented on June 18, 2024

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.

NicklasWallgren avatar NicklasWallgren commented on June 18, 2024

Yea, that solved the issue. Thanks :)

from mysql.

NicklasWallgren avatar NicklasWallgren commented on June 18, 2024

Can you please tag this release?

from mysql.

bwoebi avatar bwoebi commented on June 18, 2024

I'll tag later - for some reason tests are failing now...

from mysql.

bwoebi avatar bwoebi commented on June 18, 2024

@NicklasWallgren tagged now :-)

from mysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.