Skip to content

Commit

Permalink
[CONJ-906] possible Deadlock in AwsIamCredentialPlugin
Browse files Browse the repository at this point in the history
nonMappedOptions properties internally use a ConcurrentHashap with lots of locking. This must not be checked for equality, possibly resulting in dead lock (and since non used option, it doesn't even make sense to test equality on it)
  • Loading branch information
rusher committed Mar 4, 2022
1 parent 80665f6 commit 14e8b9f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/mariadb/jdbc/util/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,6 @@ public boolean equals(Object obj) {
if (!Objects.equals(credentialType, opt.credentialType)) {
return false;
}
if (!Objects.equals(nonMappedOptions, opt.nonMappedOptions)) {
return false;
}
if (!Objects.equals(tlsSocketType, opt.tlsSocketType)) {
return false;
}
Expand Down

0 comments on commit 14e8b9f

Please sign in to comment.