[Dbix-class] Reconnecting Behavior

Brandon Black blblack at gmail.com
Thu Jul 26 17:19:11 GMT 2007


On 7/26/07, Adam Herzog <adam at herzogdesigns.com> wrote:
> On Jul 26, 2007, at 11:07 AM, Brandon Black wrote:
> > On 7/26/07, Adam Herzog <adam at herzogdesigns.com> wrote:
> >> If a request comes in while the database is down, dbic tries to
> >> reconnect and fails (of course). But, further requests don't try and
> >> connect to the db anymore after the initial failure. So, once the
> >> database IS available again, dbic isn't reconnecting anymore, just
> >> failing (with "Can't call method "prepare_cached" on unblessed
> >> reference at /Library/Perl/5.8.6/DBIx/Class/Storage/DBI.pm line
> >> 1086.")
> <snip>
> > Can you try the attached patch (it's a patch against trunk, not sure
> > if it needs fuzz for 0.08003)?
>
> I tried out the patch against both 0.08003 and against trunk (and I
> tried trunk without the patch). No change, though (other than the
> line number of the failure.)
>

As I understand the code, it *should* be attempting reconnection.  Any
chance you can make a test file that reproduces the behavior?

-- Brandon



More information about the Dbix-class mailing list