Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-649

datasource connectTimeout URL parameter is not honoured

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.3.0, 2.2.3
    • 1.8.0, 2.4.0
    • configuration
    • None
    • Java 8

    Description

      Configuring the MariaDbDataSource using a URL, the connectTimeout parameter is no longer honoured. The inbuilt default appears to be using.

      We configure the connectTimeout to be short, as we are using the JDBC library from within a monitoring application, that requires a non typical, short connectTimeout.
      Full config URL is

      MariaDbDataSource ds = new MariaDbDataSource("jdbc:mysql://" + dbServer + "/?connectTimeout=3000&socketTimeout=5000");
      

      This appears to have been introduced around commit fde60c15d2aa6d283474ce0c31c24b88a2e78a55
      relating to "Pool datasource implementation". CONJ-522

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            brendon Brendon Abbott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.