Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3739 (closed defect: wontfix)

Opened 3 years ago

Last modified 1 year ago

[PATCH] fix for mysql autoreconnection for broken connection

Reported by: sply@sply.org Assigned to: rails@bitsweat.net
Priority: normal Milestone:
Component: ActiveRecord Version: 1.0.0
Severity: normal Keywords: mysql reconnect
Cc:

Description

patch in attachment

Attachments

md.diff (1.5 kB) - added by anonymous on 02/05/06 17:42:27.

Change History

02/05/06 17:42:27 changed by anonymous

  • attachment md.diff added.

02/10/06 05:08:41 changed by david

We need a bit more description here. What's the problem that this is curing exactly?

02/14/06 19:52:50 changed by sply@sply.org

When the connection to mysql server is broken due "weak" reason (idle timeout, mysqld restart), any ActiveRecord's database interaction produces exception. But it's not a real error and in most cases it can be safely handled with automatic reconnecting.

02/25/06 22:37:10 changed by david

  • owner changed from David to rails@bitsweat.net.

02/27/06 00:35:29 changed by bitsweat

  • status changed from new to closed.
  • resolution set to wontfix.

We're taking the "rather safe than sorry" route of never retrying a query. Please consider providing this behavior as a plugin.

01/15/08 16:42:23 changed by rogerdpack

It would be nice to have this as an optional parameter to mysql--revealable through a function or what not.