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

DiagnosticsService can not filter filename by datatime #6829

Closed
hongyunyan opened this issue Feb 15, 2023 · 2 comments · Fixed by #6838
Closed

DiagnosticsService can not filter filename by datatime #6829

hongyunyan opened this issue Feb 15, 2023 · 2 comments · Fixed by #6838

Comments

@hongyunyan
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. make a cluster up
  2. add a new log file like 'tiflash_tikv-2023-01-30T02-00-12.039.log' in tiflash/log
  3. do log search in dashboard with time selection

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

we read the log match the time selection.

3. What did you see instead (Required)

we read all log files in tiflash/log(when there are quite a lot of log files , search will be very slow)
image

This problem is related to the code FilterFileByDatetime in LogSearch.cpp, the filter function is not appropriate with the log file's name now.

4. What is your TiFlash version? (Required)

nightly

@hongyunyan hongyunyan added the type/bug The issue is confirmed as a bug. label Feb 15, 2023
@hehechen
Copy link
Contributor

hehechen commented Feb 16, 2023

It's because the format of TiKV log filename has been modified in tikv/tikv#11657

@hehechen
Copy link
Contributor

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

Successfully merging a pull request may close this issue.

3 participants