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

datasource connectTimeout URL parameter is not honoured

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.2.3
    • Fix Version/s: 2.4.0, 1.8.0
    • Component/s: configuration
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: