-
Notifications
You must be signed in to change notification settings - Fork 64
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
[0.8.1.RELEASE] TiDB数据库环境下choerodon-tool-liquibase 执行groovy脚本连接断开 #10
Comments
可以提一个pull request |
这个问题只要将那个问题修改一下再重新发版就好了,修改liquibase-core的源码即可,choerodon-tool-liquibase代码没有变化。 |
@zhaoxiaoyu19951122 你好,你可以通过向TIDB 提issue 来解决这个问题。Choerodon 使用的liquibase 会与官方保持一致。尽量不在liquibase的官方依赖上做修改。 |
@zhaoxiaoyu19951122 Hi, 我是 TiDB 的开发者,请问能提供以下报错的语句以及 Schema 吗?以及通过 |
@winkyao 问题原因:在执行更新语句时,
更新语句如下:
执行
抛出异常如下:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在
TiDB
数据库环境下使用choerodon-tool-liquibase
执行groovy 脚本时会报出连接断开的错误。根据报错信息发现问题是
liquibase.lockservice.StandardLockService#init
方法在数据库中生成的databasechangeloglock
表中LOCKED
为bit
类型,liquibase.lockservice.StandardLockService#acquireLock
方法在获取锁时会将该字段改为1
,TiDB
中bit
类型更新为1
时会发生错误2013 - Lost connection to MySQL server during query
(应该是TiDB
的BUG)。 在liquibase 官方文档中标注的LOCKED
为int
类型。但是代码并不是int
类型,可以通过覆盖文件liquibase.sqlgenerator.core.CreateDatabaseChangeLogLockTableGenerator#generateSql
修改字段类型来解决这个问题。The text was updated successfully, but these errors were encountered: