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.