解决liquibase.exception.LockException: Could not acquire change log lock.

发布时间:2024年01月23日

Tomcat 运行出错:
Caused by: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by VM2019 (10.148.68.233) since 1/17/24, 5:32 PM
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:270)
at liquibase.Liquibase.lambda$update 1 ( L i q u i b a s e . j a v a : 214 ) a t l i q u i b a s e . S c o p e . l a m b d a 1(Liquibase.java:214) at liquibase.Scope.lambda 1(Liquibase.java:214)atliquibase.Scope.lambdachild$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Liquibase.runInScope(Liquibase.java:2405)
at liquibase.Liquibase.update(Liquibase.java:211)
at liquibase.Liquibase.update(Liquibase.java:197)
at liquibase.Liquibase.update(Liquibase.java:193)
at liquibase.Liquibase.update(Liquibase.java:185)

解决办法:
执行以下命令

SELECT TOP (1000) [ID]
      ,[LOCKED]
      ,[LOCKGRANTED]
      ,[LOCKEDBY]
  FROM [你的数据库].[dbo].[ACT_DE_DATABASECHANGELOGLOCK]

得到:
在这里插入图片描述

设置ACT_DE_DATABASECHANGELOGLOCK数据库表的值为空或删除其值√
在这里插入图片描述

文章来源:https://blog.csdn.net/weixin_43529968/article/details/135774873
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。