Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-161

get_connection returns None due to low precision of time.monotonic

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.0a1
    • 1.1.0b1
    • Connection Pooling
    • None
    • Windows only
    • 3.9

    Description

      When creating a connection pool with new connections, we store value obtained from time.monotonic() in internal last_used status attribute. Apparently the resolution of time.monotonic is no high enough, so all connections may get the same value.

      Since the assumption having different time values may fail, get_connection may return no handle.

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            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.