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

Increase connection logging when Primary node connection fails

Details

    • Task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.2.5, 1.7.4
    • 2.2.6, 1.8.0
    • Other
    • None

    Description

      In order to provide more information to link a connection from an application to a database connection (for example via TCP dump), add local_port as part of the log.
      In addition, add connection timeout to provide more information .

      Before

      SQL Primary node [{}, conn={}] connection fail. Reason : {}
      

      After

      SQL Primary node [{}, conn={}, local_port={}, timeout={}] connection fail. Reason : {}
      

      Pull request: https://github.com/MariaDB/mariadb-connector-j/pull/127

      Attachments

        Activity

          fgaule Federico Gaule created issue -
          fgaule Federico Gaule made changes -
          Field Original Value New Value
          Description In order to provide more information to link a connection from an application to a database connection (for example via TCP dump), add _local_port_ as part of the log.
          In addition, add connection timeout to provide more information .

          Before
          {noformat}
          SQL Primary node [{}, conn={}] connection fail. Reason : {}
          {noformat}

          After
          {noformat}
          SQL Primary node [{}, conn={}, local_port={}, timeout={}] connection fail. Reason : {}
          {noformat}

          Pull request: TBA
          In order to provide more information to link a connection from an application to a database connection (for example via TCP dump), add _local_port_ as part of the log.
          In addition, add connection timeout to provide more information .

          Before
          {noformat}
          SQL Primary node [{}, conn={}] connection fail. Reason : {}
          {noformat}

          After
          {noformat}
          SQL Primary node [{}, conn={}, local_port={}, timeout={}] connection fail. Reason : {}
          {noformat}

          Pull request: https://github.com/MariaDB/mariadb-connector-j/pull/127
          diego dupin Diego Dupin made changes -
          Fix Version/s 2.2.6 [ 23139 ]
          diego dupin Diego Dupin added a comment -

          tested and merged

          diego dupin Diego Dupin added a comment - tested and merged
          diego dupin Diego Dupin made changes -
          issue.field.resolutiondate 2018-07-06 12:30:17.0 2018-07-06 12:30:17.915
          diego dupin Diego Dupin made changes -
          Component/s Other [ 12201 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          diego dupin Diego Dupin made changes -
          Fix Version/s 1.8.0 [ 23312 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 88187 ] MariaDB v4 [ 128382 ]

          People

            diego dupin Diego Dupin
            fgaule Federico Gaule
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.