-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
add documentation for tidb_enable_amend_pessimistic_txn. #4979
Merged
TomShawn
merged 6 commits into
pingcap:master
from
cfzjywxk:system-variable-master-amend
Dec 10, 2020
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
537f5d0
Update system-variables.md
cfzjywxk 8df077f
Update system-variables.md
cfzjywxk 02236a6
Merge branch 'master' into system-variable-master-amend
TomShawn 27abc6a
Merge branch 'master' into system-variable-master-amend
TomShawn 6682251
Update system-variables.md
cfzjywxk 519a4c3
Merge branch 'master' into system-variable-master-amend
TomShawn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -394,6 +394,18 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10; | |
- 默认值: 1 | ||
- 这个变量用于动态地控制 TiDB 遥测功能是否开启。设置为 `0` 可以关闭 TiDB 遥测功能。当所有 TiDB 实例都设置 [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-从-v402-版本开始引入) 为 `false` 时将忽略该系统变量并总是关闭 TiDB 遥测功能。参阅[遥测](/telemetry.md)了解该功能详情。 | ||
|
||
### `tidb_enable_amend_pessimistic_txn` <span class="version-mark">从 v4.0.7 版本开始引入</span> | ||
|
||
- 作用域:SESSION | GLOBAL | ||
- 默认值: 0 | ||
- 这个变量用于控制是否开启 `AMEND TRANSACTION` 特性。开启该特性之后,在[悲观事务模式](/pessimistic-transaction.md)下,事务两阶段提交之前,如果该事务相关的表存在并发 DDL 操作和 SCHEMA VERSION 变更,TiDB 会尝试对于该事务进行 amend 操作修正该事务提交内容,使其和最新有效的 SCHEMA VERSION 保持一致,进而提交该事务而不返回 `Information schema is changed` 报错。该特性对于如下并发 DDL 变更生效: | ||
|
||
- add/drop column 类型的 DDL 操作。 | ||
- modify/change column 类型的 DDL 操作。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm afraid we cannot support type changing for now |
||
- add/drop index 类型的 DDL 操作,且操作的索引列不是在事务开启之后新创建。 | ||
|
||
目前该特性可能造成事务语义的变化,且与 TiDB Binlog 存在部分兼容的场景,可以参考[事务语义行为区别](https://github.com/pingcap/tidb/issues/21069)和[与 Binlog 兼容问题汇总](https://github.com/pingcap/tidb/issues/20996)了解更多关于该特性的使用注意事项。 | ||
|
||
### `tidb_enable_vectorized_expression` <span class="version-mark">从 v4.0 版本开始引入</span> | ||
|
||
- 作用域:SESSION | GLOBAL | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.