-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When append useAffectedRows=true to the jdbc URL, liquibase cannot update the changeloglockdatabasechangeloglock properly #5502
Comments
Hi @jobmission, I've tested this using Spring Boot and using the CLI, but I haven't been able to reproduce the bug you're reporting. Could you provide more detailed steps to reproduce it? Thanks, |
Thanks you reply. |
just like your test output, there is no blocking of the application. But with error and exception outputs, it will trigger our log analysis system alarm, causing unnecessary trouble. |
That makes sense. We currently have a fix to a similar problem but only for MSSQL database instances, it can be found in the Liquibase source code. If you want, you could submit a PR to extend that solution to MySQL instances as well. This would ensure that the fix is implemented soon, and ready for you to use. Our development team will be available to provide guidance if needed. Thank you, |
Search first
Description
I am using a MySQL database,when append useAffectedRows=true to the jdbc URL, liquibase cannot update the changeloglockdatabasechangeloglock properly.
0 rows were updated instead of the expected 1 row using executor liquibase.executor.jvm.JdbcExecutor there are [{COUNT(*)=1}] rows in the table
Steps To Reproduce
append eAffectedRows=true to the jdbc URL.
spring.datasource.url=jdbc:mysql://ip:3306/your_db_name?allowPublicKeyRetrieval=true&useAffectedRows=true
Expected/Desired Behavior
Liquibase can execute normally, regardless of whether there is a new changeset
Liquibase Version
4.24
Database Vendor & Version
mysql 8.3
Liquibase Integration
Maven springboot3.2.2
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
Windows10
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: