Cannot Reproduce
Details
Reporter
Francisco Alejandro Lozano LópezFrancisco Alejandro Lozano LópezComponents
Affects versions
Priority
Critical
Details
Details
Reporter
Francisco Alejandro Lozano López
Francisco Alejandro Lozano LópezComponents
Affects versions
Priority
Created August 18, 2011 at 9:14 AM
Updated June 20, 2013 at 3:30 AM
Resolved August 18, 2011 at 1:08 PM
I have a spring context which I create and destroy for each test suite. This spring context has a liquibase bean definition which updates my changelog.
First execution of liquibase against an H2 database works properly (first test suite).
Subsequent executions fail on line 97 of LockService.java:
Boolean locked = (Boolean) ExecutorService.getInstance().getExecutor(database).queryForObject(new SelectFromDatabaseChangeLogLockStatement("LOCKED"), Boolean.class);
The exception thrown is:
liquibase.exception.LockException: liquibase.exception.LockException: Did not update change log lock correctly.
0 rows were updated instead of the expected 1 row using executor liquibase.executor.jvm.JdbcExecutor there are 0 rows in the table
Possible hint (not sure, just a conjecture):
in SpringLiquibase (Lines 226 - 246):
This snippet is executed even if there is no exception:
This rollback() is OK?