db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: CREATE TABLE not thread safe on Linux?
Date Fri, 09 Apr 2010 08:10:21 GMT
On 04/ 8/10 09:00 PM, David Van Couvering wrote:
> Hi, all.  Don't ask me why, but I have a stress test that launches 100
> simultaneous threads, all of which grab their own connection pool, and
> send a CREATE TABLE command to the same Derby database.  It ignores
> exceptions saying the table is already created.
> This works find on Windows.  However, on RHEL, I get a lot of nasties
> - I get low-level NullPointerException and "operation interrupted"
> from nio.  Bad news all around.

Hi David,

Could the problem be that your connection pool is sending interrupts to
the executing threads? I vaguely recall cases where connection pools
have been said to do that kind of things.

Knut Anders

View raw message