On Apr 30, 1:09 pm, Gray <[email protected]> wrote:
> I also recently upgraded from 1.1.106 to 1.2.134 and saw my unit tests
> go from 4.0 seconds to 28.5 seconds.

Sorry, I should have poked at this a bit more.  Looks like the issue
for me is connections to invalid tcp ports which I am testing to make
sure my ORM library handles exceptions correctly.

        @Test(expected = SQLException.class)
        public void testRemotePort() throws Exception {
                String dbUrl = "jdbc:h2:tcp://localhost:12345/foo/bar";
                dataSource = DatabaseTypeUtils.createSimpleDataSource(dbUrl);
                dataSource.getConnection();
                databaseType = DatabaseTypeUtils.createDatabaseType(dbUrl);
        }

This used to be instantaneous in 1.2.128 just like a telnet to
localhost 12345 fails with a "Connection refused" immediately.  Is
there some sort of retry put into place in 1.2.129? Can it be disabled
with a setting?

thanks,
gray

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to