[CONPY-40] connection pool issues Created: 2020-01-27 Updated: 2020-06-18 Resolved: 2020-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | Generic |
| Affects Version/s: | 0.9.53 |
| Fix Version/s: | 0.9.54 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Wayne Davison (Inactive) | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
I'm having issues using connection pools. I've only managed to get them to work when the C code allocates the connection, either via creation of the pool object (where the connect options allocates all the available pool slots) or by adding connection options via set_config() and then using add_connection() with no arg. If I try to add a connection I've made in the python code it either fails with an error or I get a segfault. So, to be clear, here's what works and what doesn't: Works (all connections pre-allocated):
Works (all connections added via internal connection):
Fails with an error on the first add:
=> mariadb.PoolError: Couldn't get configuration for pool 'pool1'. This segfaults on the first add:
Here's one more failure:
=> first add_connection() fails with: These tests were done with the latest pip3 install --pre mariadb code using python 3.6.9. |
| Comments |
| Comment by Georg Richter [ 2020-01-28 ] | ||||
|
The second example works ok, the same behavior when using MySQL Connector/Python:
| ||||
| Comment by Georg Richter [ 2020-01-28 ] | ||||
|
Fixed. rev. 87c4520c5596b7033fa3bba7c24f4433f24d5fa7 |