Skip to content
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

v5.0.1 - tidb_enable_async_commit and tidb_enable_1pc cannot be displayed #24411

Closed
glkappe opened this issue May 4, 2021 · 4 comments
Closed
Labels
severity/minor sig/transaction SIG:Transaction type/question The issue belongs to a question. type/stale This issue has not been updated for a long time.

Comments

@glkappe
Copy link

glkappe commented May 4, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

image

2. What did you expect to see? (Required)

tidb_enable_async_commit and tidb_enable_1pc can be displayed through show variables
like
image

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

`mysql> \s

mysql Ver 14.14 Distrib 5.6.48-88.0, for Linux (x86_64) using 6.2

Connection id: 5
Current database:
Current user: [email protected]
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.7.25-TiDB-v5.0.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 5.7 compatible
Protocol version: 10
Connection: 172.16.4.107 via TCP/IP
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8
Conn. characterset: utf8
TCP port: 24000
Uptime: 0 sec

Threads: 0 Questions: 0 Slow queries: 0 Opens: 0 Flush tables: 0 Open tables: 0 Queries per second avg: 0.000

`

@glkappe glkappe added the type/bug The issue is confirmed as a bug. label May 4, 2021
@glkappe
Copy link
Author

glkappe commented May 4, 2021

image
image

How should I understand this phenomenon!

@glkappe glkappe changed the title tidb_enable_async_commit and tidb_enable_1pc cannot be displayed tidb - v5.0.1 - tidb_enable_async_commit and tidb_enable_1pc cannot be displayed May 4, 2021
@glkappe glkappe changed the title tidb - v5.0.1 - tidb_enable_async_commit and tidb_enable_1pc cannot be displayed v5.0.1 - tidb_enable_async_commit and tidb_enable_1pc cannot be displayed May 4, 2021
@morgo
Copy link
Contributor

morgo commented May 4, 2021

@glkappe This is intentional, you can se a list of the variables that are hidden here:

// FeatureSwitchVariables is used to filter result of show variables, these switches should be turn blind to users.
var FeatureSwitchVariables = []string{
TiDBEnableChangeColumnType,
TiDBEnablePointGetCache,
TiDBEnableAlterPlacement,
TiDBEnableChangeMultiSchema,
TiDBEnableAsyncCommit,
TiDBEnable1PC,
TiDBGuaranteeLinearizability,
TiDBTrackAggregateMemoryUsage,
TiDBAnalyzeVersion,
TiDBPartitionPruneMode,
TiDBEnableIndexMergeJoin,
TiDBEnableExtendedStats,
}

I am not a fan of it personally. In MySQL all variables always show up in the SHOW VARIABLES list.

@youjiali1995
Copy link
Contributor

tidb_enable_async_commit and tidb_enable_1pc are hidden because they are switches for temporary use. For example, if there are some bugs, we may want to turn off them. And during the rolling upgrade, we can't turn them on because they are not compatible with the old version TiDB and use these variables to turn them on after the upgrade. Normally, these features should be on at all times and we don't want users to use them.

@sticnarf sticnarf added type/question The issue belongs to a question. and removed type/bug The issue is confirmed as a bug. labels Nov 22, 2021
@jebter
Copy link

jebter commented Jun 6, 2024

The issue has not been updated for too long, so I will close it. If there are any updates, you can reopen it.

@jebter jebter closed this as completed Jun 6, 2024
@jebter jebter added the type/stale This issue has not been updated for a long time. label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/transaction SIG:Transaction type/question The issue belongs to a question. type/stale This issue has not been updated for a long time.
Projects
None yet
Development

No branches or pull requests

6 participants