Skip Menu |

This queue is for tickets about the DBIx-RetryOverDisconnects CPAN distribution.

Report information
The Basics
Id: 83138
Status: resolved
Priority: 0/
Queue: DBIx-RetryOverDisconnects

People
Owner: Nobody in particular
Requestors: DAMI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08
Fixed in: (no value)



Subject: take_measures - SUPER::ping throws an exception
Hi Oleg, While testing DBIx-RetryOverDisconnects with DBD::Oracle, my program broke with an exception in take_measures(), at the call to $self- Show quoted text
>SUPER::ping().
When testing Oracle's ping() separately, it seems to work as documented (returning 1 or 0 without exception); but in this particular situation, it raises an exception, I'm not sure why (maybe it has something to do with the fact that this is a kind of recursive ping() : the first ping () tries to reconnect, which tries to take measures, which tries to ping again ...). Anyway, I found a way out by putting this SUPER::ping() within an eval. So I suggest you introduce such an eval within the take_measures method.