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

Useless memory consumption when using Statement.setQueryTimeout

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4
    • 1.4.5
    • Other
    • None

    Description

      Since commit https://github.com/MariaDB/mariadb-connector-j/commit/efc6405.
      When using Statement.setQueryTimeout, and execution is done before timeout, the cancel task will not be executed, but stay on memory until timeout is excedded.

      If timeout is set to a very big amount of time (like one hour), all those cancel task will consume memory needlessly.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            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.