When the user is changed during a transactions using MySQLReauthPlugin from JCA, the transaction commit fails with:
Caused by: java.sql.SQLException: Can't call commit when autocommit=true
I believe that the autocommit=true is set in com.mysql.cj.jdbc.ConnectionImpl.changeUser(String, String)
The behavior change probably by this commit.
Not sure if that's a driver problem or if we should somehow work with it in ironjcamar