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

Unhandled PDO exceptions #865

Open
stwalkerster opened this issue Sep 26, 2023 · 0 comments
Open

Unhandled PDO exceptions #865

stwalkerster opened this issue Sep 26, 2023 · 0 comments

Comments

@stwalkerster
Copy link
Member

This was triggered when I had a long-running (read: 6 minutes) transaction in the database (probably locking both comment and log tables), and comments were being added to a request.

SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction

#0 ./includes/DataObjects/Comment.php(109): PDOStatement->execute()
#1 ./includes/Pages/RequestAction/PageComment.php(65): Waca\DataObjects\Comment->save()
#2 ./includes/Tasks/PageBase.php(107): Waca\Pages\RequestAction\PageComment->main()
#3 ./includes/Tasks/InternalPageBase.php(90): Waca\Tasks\PageBase->runPage()
#4 ./includes/WebStart.php(183): Waca\Tasks\InternalPageBase->execute()
#5 ./includes/WebStart.php(104): Waca\WebStart->main()
#6 ./internal.php(24): Waca\WebStart->run()
#7 {main}

There's probably a ton of places in the tool where this can be triggered, so we probably ought to have a more generic handler for this than the global exception handler.

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

No branches or pull requests

1 participant