ChangeSet.execute commit is not executed in the same transaction as UpdateVisitor.database.markChangeSetExecStatus commit

Description

The UpdateSet.execute method of the UpdateVisitor.visit method submits the transaction.
At this time, the database change caused by the SQL in the ChangeSet (create the table tbl_user_test) has taken effect. If the JVM crashes after the changeSet.execute is executed, the UpdateVisitor.visit next this .database.markChangeSetExecStatus, this.database.commit will not be executed, causing the change record not to be logged to the databasechangelog table, the database will be in an inconsistent state and the report tbl_user_test exists when the JVM starts again and executes the changelog.

Environment

JDK8+Windows

Status

Assignee

Unassigned

Reporter

XiaoJin Zhang

Labels

None

Components

Affects versions

Priority

Major
Configure