Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
1.0.11
-
None
-
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:
- Assume the mariadb server is running on host A, and you do follow steps with host B
- 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)
``` - Disconnect host B's network.(By shutdown the NIC)
- Reconnect host B's network
- invoke `ConnectionPool.get_connection()`
Then the program will fall into a dead cycle which "ping-failed-continue-ping". I think, this is a bug