Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

update database code and mysql driver to handle stalled connections #1211

Closed
wants to merge 2 commits into from

Conversation

lloyd
Copy link
Contributor

@lloyd lloyd commented Feb 27, 2012

No description provided.

  * all database functions return an err as the first param which is non-null for failure.
  * all wsapis handle database errors and return service unavailable to client.
  * stalled-mysql-test implements unit tests to verify proper failure behavior of all wsapis.
  * configuration parameter added to define max allowed time per query
@ghost ghost assigned ozten Feb 27, 2012
@lloyd
Copy link
Contributor Author

lloyd commented Feb 27, 2012

this is a beast. because of its size it would be better to merge sooner than later (minimize conflicts, maximize time on dev before going out in this weeks train) when merged, it will close issue #990

@ozten
Copy link
Contributor

ozten commented Feb 27, 2012

r+ with one suggested consideration. Tests passed for me and using app worked.

If no furhter changes, please land on dev branch, or if feedback causes a significant change, happy to review another commit on this pull request.

@benadida
Copy link
Contributor

looks good (didn't run tests, trusting @ozten). r+ from me in case you wanted more reviews for such a large commit.

…ebug console output, fail slow queries rather than retrying, and add a statsd counter for failed_query
@lloyd lloyd closed this in 0c74c69 Feb 28, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants