Skip to content

Getting Deadlock in MySQLSelectForUpdateBasedProxyManager.tryInsertEmptyData method #497

Discussion options

You must be logged in to vote

Hello @saikatkar

  1. You use MySQLSelectForUpdateBasedProxyManager with MariaDB JDBC driver. This configuration was never tested because, there is dedicated integration for MariaDB try to switch to this dependency if you use MariaDb.

  2. How did you activate Gap locking? Did you configure configure default transaction level at datasource levele that deffers from READ COMMITTED? If so, that looks that I need to add loggic to MySQLSelectForUpdateBasedProxyManager that will be responsible to set READ COMMITTED isolation level(that explicitly disables gap locking) after taking connection from datasource, and restore previous isolation level before returning transaction to datasource.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@saikatkar
Comment options

@vladimir-bukhtoyarov
Comment options

@saikatkar
Comment options

Answer selected by vladimir-bukhtoyarov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants