[pool] okay to close POOL-119?

2010-01-16 Thread Christoph Kutzinski
Hi, https://issues.apache.org/jira/browse/POOL-119 "GenericObjectPool: Provide option to create new objects serial" I had created this issue long ago, but as I have currently no interest in commons-pool anymore and no one else seems to care about the issue I describe there: Is it okay POOL-1

Re: [pool] New DBCP deadlock reported (DBCP-44)

2008-03-05 Thread Christoph Kutzinski
> > Not having thought this through all the way, I was thinking about an > > integer property that could take one of four values > > "BORROWED" - a ghost in the pool snapshot > > "IDLE" - in the pool, OK to borrow > > "DEAD" - in the pool, marked for eviction > > "VALIDATING" - in the pool, being

Re: [pool] New DBCP deadlock reported (DBCP-44)

2008-03-04 Thread Christoph Kutzinski
Phil Steitz wrote: > 3) when to do _factory.destroyObject - can't do this is the > mid-section because borrowObject could jump in and grab the destroyed > object. Need some way to prevent that, maybe by locking / marking the > ObjectTimeStampPair. That could be done after the second synch

Re: [pool] New DBCP deadlock reported (DBCP-44)

2008-03-02 Thread Christoph Kutzinski
Hi Phil, Phil Steitz wrote: Thanks, Christoph On Sat, Mar 1, 2008 at 4:21 AM, Christoph Kutzinski <[EMAIL PROTECTED]> wrote: As the 'inversed' locking order in evict() is obviously the source of the problems, I would try to avoid calling any _factory methods while holding

Re: [pool] New DBCP deadlock reported (DBCP-44)

2008-03-01 Thread Christoph Kutzinski
As the 'inversed' locking order in evict() is obviously the source of the problems, I would try to avoid calling any _factory methods while holding the 'this' lock. I thinking about something like this: public void evict() { CursorableLinkedList tmpPool; Collection connsToEvict = new Array

Re: [pool] Serializing makeObject WAS Re: [POOL] Offer of help for a 1.4 release

2008-01-06 Thread Christoph Kutzinski
I opened a JIRA ticket for the issue: https://issues.apache.org/jira/browse/POOL-119 Christoph Henri Yandell wrote: On Jan 5, 2008 3:39 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: Phil Steitz wrote: Yes. It may be ultimately best to make this configurable. If you are OK with this approach, w

Re: [POOL] Offer of help for a 1.4 release

2008-01-05 Thread Christoph Kutzinski
Phil Steitz wrote: If you are really worried about the cost of object creation then you can configure the pool to create all the objects at start-up and block until a free object is available. That is unfortunately not possible under our current configuration as we have set up our application

Re: [POOL] Offer of help for a 1.4 release

2008-01-03 Thread Christoph Kutzinski
Hi, sorry for the late reply, but I've been very busy in the last weeks. I still wanted to make some comments on the changes to the synchronization in GenericObjectPool (and that like) - not sure which JIRA number refers to that. I think one of the few good things about the strong synchronizatio

Re: [POOL] Offer of help for a 1.4 release

2007-12-04 Thread Christoph Kutzinski
Hi, > On Dec 2, 2007 2:24 PM, <[EMAIL PROTECTED]> wrote: > > Phil Steitz wrote: > > > > >> - fully synchronized borrowObject() and returnObject() methods. I've > > >> seen this to be a serious bottleneck when the database is under high > > >> load and another connection needs to be created. > > >

Re: [lang] 1.3 problems

2007-12-03 Thread Christoph Kutzinski
That's not entirely true http://java.sun.com/j2se/1.3/download.html "On Solaris 8 - J2SE 1.3.1 is continuing in the Sun End of Life (EOL) process. The EOL transition period began Oct 25, 2004 and will continue until the the end of the Solaris 8 five year Vintage Support Period." ;-) > Another