[CONCPP-121] Connection returned from the pool may be marked and behave as closed Created: 2024-01-18  Updated: 2024-02-05  Resolved: 2024-02-05

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: 1.1.2
Fix Version/s: 1.1.3

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by Lawrin Novitsky [ 2024-01-18 ]

That can happen on the 2nd use - if 1st time it was closed, and this way returned to the pool, it'll still closed when it's given again to application. Actually, need to verify if it was really in 1.1.2, or regression brought after the last release

Comment by Lawrin Novitsky [ 2024-01-22 ]

Still not quite clear - on one hand it seems like it should be covered by old testcase(s), on other - I can't see in changes after last release what could cause it. I am inclined to leave it in place.

Comment by Lawrin Novitsky [ 2024-02-05 ]

If return to the pool was initiated by close(), it was possible, that new connection already got the returned connection while close() still continued routine, including marking underlying Protocol object as closed.
Plus there were other cases possible - it's described in the commit description

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