Exception "HY000: no connection to the server" when using connection tracking in Warlock #63
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-dbi#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Warlock is a long running process, meaning that services start up and once stuff is loaded into memory, it stays there until it is specifically deleted. When we use
Hazaar\DBI\Adapter::getInstance()
to get a DBI Adapter instance, that instance is tracked in memory (based on environment/config). Because this connection is now established once and then expected to always be there, if the database disappears for a bit and the connection dies, the Adaptor is in a broken.This issue means I need to update
getInstance()
to check the connection state and if it's dead, kill off the existing instance and create a new one. I will need to do this as efficiently as possible so hopefully PHP-PDO has the tools to check connection states.created merge request !35 to address this issue
mentioned in merge request !35
mentioned in commit
5dd3310fb4