[CONJ-983] Connector/J call may stuck on acquiring lock Created: 2022-06-17 Updated: 2022-07-14 Resolved: 2022-06-21 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.7.2 |
| Fix Version/s: | 2.7.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Looks like it's possible to get stuck while acquiring lock, like this:
The current theory is that during previous use of this connection, something went wrong which caused the connection to be returned to the pool without unlocking the lock. |
| Comments |
| Comment by Diego Dupin [ 2022-06-17 ] | |||||||||||||||
|
Java connector use ReentrantLock in order to ensure thread concurrency issues. This error means that lock was acquied by another thread and has not been release. Thread is then stucked forever. There is 2 possibles case that can lead there:
| |||||||||||||||
| Comment by Diego Dupin [ 2022-06-21 ] | |||||||||||||||
|
this affect only 2.x series, not 3.0 | |||||||||||||||
| Comment by Diego Dupin [ 2022-06-22 ] | |||||||||||||||
|
correction available using snapshot :
|