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

Can't add connection to pool

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 1.0.1
    • N/A
    • Documentation
    • None

    Description

      Hi Georg,

      I created a pool with only 2 pre connections with

      import mariadb
      conn_parameter = {'host': .... }
       
      pool = mariadb.ConnectionPool(pool_name='test', pool_size=2, **conn_parameter)
      

      Checked the max_size of pool

      print(pool.max_size)
      # Returned 64
      

      But, if I try to add some new connection to pool,

      new_db = mariadb.connect(**conn_parameter)
      pool.add_connection(new_db)
      

      I get the exception mariadb.PoolError: Couldn't add connection to pool 'test' (no free slot available).

      Am I missing something?

      Attachments

        Activity

          People

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