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

Add read_tso as tracing id to DeltaTree engine #4287

Closed
JaySon-Huang opened this issue Mar 15, 2022 · 2 comments · Fixed by #4288
Closed

Add read_tso as tracing id to DeltaTree engine #4287

JaySon-Huang opened this issue Mar 15, 2022 · 2 comments · Fixed by #4288
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@JaySon-Huang
Copy link
Contributor

Enhancement

After #3632, we introduce DynamicThreadPool to reuse threads for handling incoming tasks. Then the "thread_id" record in PageStorage snapshot become less useful.

Add a "tracing_id" to the PageStorage snapshot, and use "read_tso" as the "tracing_id", it is more useful for locating bugs.

@JaySon-Huang
Copy link
Contributor Author

Reopen since we need to show the tracing_id in TiDB system table information_schema.tiflash_tables

After #4288, we add three column in system.dt_tables. But they are not shown in the TiDB system table information_schema.tiflash_tables yet.

# debug show by using tiflash client
bash> ./tiflash client --host=127.0.0.1 --port=9000
tiflash> select * from system.dt_tables limit 1

One can refer to this PR for how to modify the TiDB information_schema.tiflash_tables system table pingcap/tidb#18092

@JaySon-Huang JaySon-Huang reopened this Apr 12, 2022
@JaySon-Huang JaySon-Huang changed the title Add read_tso as tracing id to PageStorage snapshot Add read_tso as tracing id to DeltaTree engine Apr 13, 2022
@breezewish
Copy link
Member

Corresponding fields has been added in pingcap/tidb#38191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants