Open hicqu opened 4 years ago
/pick-up-challenge
@skyitachi pick up issue success
This pick has been automatically canceled after more than a week.
/pick-up-challenge
@skyitachi pick up issue success
This pick has been automatically canceled after more than a week.
/pick-up-challenge
@XiaochenCui pick up issue success
This pick has been automatically canceled after more than a week.
/pick-up-challenge
@YKG pick up issue success
I think there are several things need to be considered:
--log-file
but get some logs in stderr.@BusyJay Do you mean a fix on this issue might be less useful? If it's true, should I stop working on this issue?
I have read the releated code, I think the 4th consideration you point out is expected behavior, because if --log-file
specified, tikv will use an async file logger, when it panics, the global logger will be swithed to a stderr
terminal logger wrapper , all the pending logs will be logged to stderr
.
...should I stop working on this issue...
You can still work on the issue, but I think there should be more discussions. For example, adding a configuration to log the trace to stderr in addition to log seems a balance between context and search.
/cc @hicqu
..when it panics, the global logger will be swithed to a stderr terminal logger wrapper...
What you mention is implement details, what I'm talking about is the use experience.
Users also cannot search in tikv_stderr.log when using TiDB Dashboard, so this change may make it harder to search. Considering that the other output lines in stderr (e.g. produced by grpc / rocksdb) is unlikely to conform our unified log format, we may never have a chance to let user search it.
Description
Print panic information into tikv_stderr.log to make it easier to search.
Related code is here https://github.com/tikv/tikv/blob/master/components/tikv_util/src/lib.rs#L466
Difficulty
Score
Mentor(s)
Recommended Skills
Learning Materials