[CONJ-906] Deadlock in AwsIamCredentialPlugin Created: 2021-12-02  Updated: 2022-03-04  Resolved: 2022-03-04

Status: Closed
Project: MariaDB Connector/J
Component/s: aurora, Failover
Affects Version/s: 2.7.4
Fix Version/s: 2.7.5

Type: Bug Priority: Major
Reporter: Krzysztof Bialek Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File mariadb-deadlock.txt    

 Description   

Background

I run an application in Tomcat that is connected to Aurora DB Cluster comprised of reader and writer instance. I use MariaDB JDBC Driver and Hikari connection pool.

Problem

The application occasionally stops working. In the application thread dump I found that MariaDb-failover threads are in a dead-lock state, and that in turn blocks core connection adder Hikari thread. As a consequence no new database connection can be created.



 Comments   
Comment by Diego Dupin [ 2022-03-04 ]

properties internally use a ConcurrentHashMap with locks that might result in this problem.
correction will be part of next release (doesn't concerns 3.0 series)

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