[CONPY-183] Crash when accessing a previously closed connection pool Created: 2021-12-06  Updated: 2021-12-19  Resolved: 2021-12-19

Status: Closed
Project: MariaDB Connector/Python
Component/s: Connection Pooling
Affects Version/s: 1.0.8
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Relates
relates to CONPY-188 Disable methods and properties of clo... Closed
Python Version: 3.8

 Description   

When executing pool.get_connection() method a crash occurs if the connection pool was already closed.

import mariadb
 
pool= mariadb.ConnectionPool(user="georg", database="test", pool_name="crash")
conn= pool.get_connection()
conn.close()
pool.close()
conn= pool._get_connection()



 Comments   
Comment by Georg Richter [ 2021-12-19 ]

Duplicate of CONPY-188.

Generated at Thu Feb 08 03:30:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.