Subject | Re: [Firebird-Java] FBWrappingDataSource - suspected Bug |
---|---|
Author | Mark Rotteveel |
Post date | 2014-02-25T18:04:47Z |
On 24-2-2014 12:46, Mark Rotteveel wrote:
inconsistent and insufficient synchronization issues and potential races
that could cause it. Unfortunately adding more synchronization similar
to the existing sync's (on the queue itself and on a 'takeMutex') would
probably cause some nasty deadlocks or starvation.
Fixing it isn't going to be as straight-forward as I'd like.
Does your code by any chance 'restart' or 'shutdown' and then 'start'
the pool occasionally? It looks like that has a higher chance of
breaking it.
Mark
--
Mark Rotteveel
> I have thought this over during the weekend, and I will be investigatingI am investigating the problem and their are definitely some
> the bug. If I can identify the cause and the fix doesn't have too much
> impact, I will fix it in Jaybird 2.2.5 or 2.2.6.
>
> However my advice remains: switch to a third party connection pool (or use
> the one built-in in your application server).
inconsistent and insufficient synchronization issues and potential races
that could cause it. Unfortunately adding more synchronization similar
to the existing sync's (on the queue itself and on a 'takeMutex') would
probably cause some nasty deadlocks or starvation.
Fixing it isn't going to be as straight-forward as I'd like.
Does your code by any chance 'restart' or 'shutdown' and then 'start'
the pool occasionally? It looks like that has a higher chance of
breaking it.
Mark
--
Mark Rotteveel