in reply to Re: Class::DBI, connect_cached and possible lost transactions?
in thread Class::DBI, connect_cached and possible lost transactions?
Thank you for your response.
You say that it's unlikely. I'm attempting to determine the likelihood of this occuring. In other words, is it worth the effort to correct the problem.
The first scenario that comes to mind is a momentary network outage from the web server to the database server. Using my example from the original question:
1. Immediately before the 8th call to _mk_db_closure, there is a momentary network outage to the database server.
2. $dbh->ping is called (which on DBD::Oracle, does a 'select sysdate from dual')
I 'think' this is an immediate, no timeout operation.
ping would return false.
3. A new connection would attempted to be made.
With DBI->connect (on Oracle), I'm pretty sure
that it tries a few times to connect before
timing out and erroring. Before the timeout,
the network comes back up. A new dbh is created
and transactions are lost.
Another scenario is that our primarly database server fails over to the secondary node. Depending on how quickly the fail over happened, this could be a similar situation as the momentary network outage.
With your experience, would you agree that the above scenarios could result in the lost transaction problem?
Thank you, Perrin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Class::DBI, connect_cached and possible lost transactions?
by perrin (Chancellor) on May 03, 2006 at 21:46 UTC | |
by Anonymous Monk on May 05, 2006 at 14:52 UTC | |
by perrin (Chancellor) on May 05, 2006 at 21:30 UTC |