Skip to content
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

Fix cancelling timeouted queued queries in transactions for MySQL using driver dequeue method #4444

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

martinmacko47
Copy link
Contributor

Resolves #4415

Addaptation of PR #4416 using draft implementations of Query.dequeue() for mysql and mysql2 drivers:

@maximelkin
Copy link
Collaborator

Nice
now waiting for driver maintainers for approve & .pause decision

@martinmacko47 martinmacko47 force-pushed the promise-all-timeout-error+dequeue-in-driver branch from 8f3dfab to 7f7907f Compare April 22, 2021 19:33
* Use connection pause/resume to prevent kill race condition

* Move connection resume before destroy raw connection
@martinmacko47
Copy link
Contributor Author

now waiting for driver maintainers for approve & .pause decision

@maximelkin @kibertoad Hi. Do you think, is there anything we can do to have those timeouts in transactions on MySQL fixed? Diver maintainers did not respond to my PR mysqljs/mysql#2480, besides the first mysqljs/mysql#2478 (comment). Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.timeout(ms, {cancel: true}) for with queued queries in transaction
2 participants