It should be synchronous, we join() all of the threads.
But it sounds like we're missing a thread somewhere.
Could you take a thread dump just after the stop() using
Thread.getAllStackTraces()
and post it here?
Thanks, Noel.
On 2013-07-31 02:58, Subhash Agrawal wrote:
We have a H2 restart functionality which
first calls org.h2.tools.Server.stop() function to stop H2 database and
then start h2 database using Server.createTcpServer(svrArgs).start();
After starting H2, we create schema and load data into it.
There is no delay/sleep between stop and start call.
We are seeing intermittent exception of "Table already exists"
whenever we restart H2.
I am wondering if stop function is asynchronous, and tables do not get
dropped before it
returns from stop function.
Please let me know if you anything wrong in the call sequence. Should
I introduce delay between
stop and start function?
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.