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

Process hang while invoke ConnectionPool.get_connection()

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 1.0.11
    • None
    • Connection Pooling
    • None
    • debian 10
    • 3.8

    Description

      Hi, may be I found a bug in ConnectionPool.get_connection().

      You can reproduce the problem through the following steps:

      1. Assume the mariadb server is running on host A, and you do follow steps with host B
      2. Create a connection pool
        ```
        _pool = mariadb.ConnectionPool(
        host=constant.DB_HOST,
        port=constant.DB_PORT,
        user=constant.DB_USER,
        password=constant.DB_PASSWORD,
        pool_name=constant.DB_POOL_NAME,
        db=constant.DB_NAME,
        pool_size=constant.DB_POOL_SIZE,
        autocommit=True)
        ```
      3. Disconnect host B's network.(By shutdown the NIC)
      4. Reconnect host B's network
      5. invoke `ConnectionPool.get_connection()`

      Then the program will fall into a dead cycle which "ping-failed-continue-ping". I think, this is a bug

      Attachments

        Activity

          People

            georg Georg Richter
            longjin long jin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.