-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: fix setHeapProfileTracker panic on Windows #17226
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
LGTM |
PTAL @SunRunAway |
@eurekaka @lzmhhh123 PTAL |
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.
LGTM
/run-all-tests |
@jackysp merge failed. |
Codecov Report
@@ Coverage Diff @@
## master #17226 +/- ##
===========================================
Coverage 79.9588% 79.9588%
===========================================
Files 517 517
Lines 140361 140361
===========================================
Hits 112231 112231
Misses 19177 19177
Partials 8953 8953 |
/merge |
/run-all-tests |
@jackysp merge failed. |
/merge |
/run-all-tests |
@jackysp merge failed. |
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.
LGTM
/merge |
/run-all-tests |
@jackysp merge failed. |
/merge |
/run-all-tests |
Signed-off-by: Shuaipeng Yu jackysp@gmail.com
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
In #16777, util/profile/trackerRecorder.go uses logrus as its logger, but it panicked on Windows. I'm not sure if it is a bug of logrus or not.
What is changed and how it works?
Proposal: xxx
What's Changed:
Actually logrus is only used by slow query due to some historical issue. TiDB uses pingcap/log (zap) as its default logger. So I change it and set the tracker after the logger initialized.
How it Works:
Check List
Tests
go run tidb-server/main.go on Windows, and it won't panic.
Release note