stellar-deprecated / stex

DEPRECATED. An opinionated framework built on top of expressjs used to build better web services for stellar
Other
30 stars 11 forks source link

Unrecoverable Error: Cannot enqueue Query after fatal error. #20

Open nullstyle opened 10 years ago

nullstyle commented 10 years ago

If a connection is killed by mysql, or the running stex application otherwise gets its connection into a fatal state, stex does not properly recover and the service requires a restart to resume normal function.

Instead, stex needs to validate/reconnect to the db at the HTTP request boundary if no connection is available, and we need to close connections after we receive a fatal error.

nullstyle commented 10 years ago

The error: Cannot read property '__cid' of undefined

nullstyle commented 10 years ago

This first step to having recoverable connection errors is here:

https://github.com/bookshelf/generic-pool-redux/pull/4