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

Dashboard show txn_start_ts value is different from tidb_slow_query.log #758

Closed
yilongrong opened this issue Sep 14, 2020 · 3 comments · Fixed by #793
Closed

Dashboard show txn_start_ts value is different from tidb_slow_query.log #758

yilongrong opened this issue Sep 14, 2020 · 3 comments · Fixed by #793
Labels

Comments

@yilongrong
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

What did you do?

  1. When I find tikv.log include slow-query information, I need use txn_start_ts value to find the sql.

[tracker.rs:199] [slow-query] [internal_key_skipped_count=970284] [internal_delete_skipped_count=0] [block_cache_hit_count=657] [block_read_count=0] [block_read_byte=0] [encrypt_data_nanos=0] [decrypt_data_nanos=0]
[scan_first_range="Some(start: 7480000000000000715F728000000000277903 end: 7480000000000000715F72800000000036472F)"]
[scan_ranges=1] [scan_iter_processed=970284] [scan_iter_ops=970286] [scan_is_desc=false] [tag=select] [table_id=113]
[txn_start_ts=419447227966554113]
[handler_build_time=0ns] [snapshot_wait_time=1ms]
[schedule_wait_time=0ns] [wait_time=1ms] [total_process_time=2.501s]
[req_time=2.641s] [remote_host=ipv4:172.16.5.169:34238] [region_id=2113]

  1. Dashboard show txn_start_ts value is not correct.

image

What did you expect to see?

Dashboard show txn_start_ts value should same with slow query log.
image

What did you see instead?

What version of TiDB Dashboard are you using (./tidb-dashboard --version)?

v 4.0.5

@baurine
Copy link
Collaborator

baurine commented Sep 14, 2020

Thank you for your report, let me have a check.

@baurine baurine self-assigned this Sep 14, 2020
@baurine
Copy link
Collaborator

baurine commented Sep 14, 2020

It seems not easy to reproduce. hi @yilongrong , can you make sure the above two are the exact same slow query? For example the same time, the same SQL...

@baurine baurine removed their assignment Sep 14, 2020
@breezewish
Copy link
Member

I believe this issue can be fixed by #793

@breezewish breezewish linked a pull request Nov 11, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants