db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6094) Derby ignores DriverManager.setLoginTimeout()
Date Thu, 07 Mar 2013 04:26:13 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595535#comment-13595535

Dag H. Wanvik commented on DERBY-6094:

Good tests. Minor: comment say 5 seconds sleep, code says 2.

I don't quite understand this result:

Stopping server...
Starting server with timeout 10
Setting timeout 10 on local connector
    Testing derby6094.Derby6094$DriverManagerConnector( jdbc:derby://localhost:8246/memory:db1
        java.sql.SQLNonTransientConnectionException: SQLState = 08001. Message = java.net.ConnectException
: \
             Error connecting to server localhost on port 8246 with message Connection refused:
        Experiment took 1030 milliseconds.

If both the client and the server side timeout is 10 seconds and the authenticator sleeps
only 2 (or 5) seconds, why the failure?

Another question: You fork a server, but the test has unused code for starting the server
via the API in the same VM. Have you seen a difference in behavior there?
> Derby ignores DriverManager.setLoginTimeout()
> ---------------------------------------------
>                 Key: DERBY-6094
>                 URL: https://issues.apache.org/jira/browse/DERBY-6094
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions:
>            Reporter: Rick Hillegas
>         Attachments: LoginTimeoutTest.java, LoginTimeoutTest.java, LoginTimeoutTest.java,
> If you set a login timeout using the DriverManager, Derby ignores the setting. I will
attach a test case which shows this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message