Hi,

I guess it makes sense to start the TCP and PG servers first. I don't
remember why I changed the order at some point, I guess it wasn't just an
accident. I have fixed that now.

Regards,
Thomas


On Fri, Jan 17, 2014 at 8:11 AM, Noel Grandin <noelgran...@gmail.com> wrote:

>
>
> On 2014-01-16 16:25, Dave Atkins wrote:
>
>>
>> Also attaching thread dumps...but really it just shows what we know:
>> sometimes the TCP (and PG) server fails to start.
>>
>>
>
>
> Hmmm, it looks like there are two stuck threads there. They say they are
> RUNNABLE, but that just means that they might be locked on some native
> lock, or stuck spinning in some CPU loop.
>
> I suspect that there is an underlying bug in the JDK's javax.sql package
> which seems to be triggered by us calling
>  org.h2.Driver.load(), which in turn calls java.sql.DriverManager.
> DriverManager.registerDriver()
> and
>  java.sql.DriverManager.getLogWriter()
> in parallel on two different threads.
>
> Thomas, in org.h2.tools.Server, we start the Web-Console before we start
> the TCP and PG servers.
> Why is this?
> Up until version 1351 we started the TCP and PG servers before the
> web-console, which would have prevented this bug.
>
> Dave, you appear to have something running in the background which is
> constantly connecting to the Web-Console, and if it manages to do so during
> startup, it triggers this bug. Turning that thing off should prevent this
> bug until we can fix it properly.
>
> Regards, Noel.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to h2-database+unsubscr...@googlegroups.com.
> To post to this group, send email to h2-database@googlegroups.com.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to