Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

tidb-ansible v3.0.1 pessimistic-txn 悲观锁事务配置无法生效 #835

Open
wentaojin opened this issue Jul 19, 2019 · 1 comment
Open

Comments

@wentaojin
Copy link

ansible 正常显示我已开启悲观锁:
image

实际数据库 tidb_config,显示我并没开:
image

tidb.toml 配置文件缺少 pessimistic-txn 选项:
image

解决:
修改 tidb.yml 配置:
pessimistic-txn:
更改为
pessimistic_txn:

配置 tidb.toml 生成模板:
roles/tidb/templates/tidb.toml.j2 文件最后加上
[pessimistic-txn]
{% for item, value in tidb_conf.pessimistic_txn | dictsort -%}
{{ item }} = {{ value | to_json }}
{% endfor %}

重新滚动集群即可生效~

@liubo0127
Copy link
Contributor

Already fixed in #850

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants