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

_on_socket_writable called continuously on idle async connections causing 100% CPU usage

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.0.0-rc
    • 2.0.0-rc3
    • Other
    • None
    • 3.13

    Description

      When using mariadb+mariadbconnector_async with SQLAlchemy's async engine, idle pooled connections cause the asyncio event loop to spin at 100% CPU on one core indefinitely.

      The issue does not occur when using poolclass=NullPool.

      Attached repro example with docker compose file.

      Attachments

        Activity

          People

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