Bug #46140
closed
mds: couldn't see the logs in log file before the daemon get aborted
Added by Xiubo Li almost 4 years ago.
Updated almost 2 years ago.
Description
It seems the assert() call doesn't flush the log buffer to the relevant log files before it aborting the daemons, usually the logs are very useful to diagnose the root cause of the problem.
- Assignee changed from Xiubo Li to Dhairya Parmar
- Description updated (diff)
- Status changed from New to Closed
After a brief discussion with @Xiubo Li, we decided to close this tracker as this issue was encountered while debugging a crash bug long time ago and since then it has not been seen/reported. It should be a Log thread that got stuck when flushing log buffer to the log files.
- Description updated (diff)
I recalled it, we need to switch `assert()` to `ceph_assert()`. And the `ceph_assert()` will help dump the recent logs from the log buffer. And also the `assert()` is buggy in ceph, more detail please see ceph PR#42541.
- Status changed from Closed to New
- Status changed from New to Resolved
Checked the code, all the assert()/abort() have been fixed. Closing it.
Also available in: Atom
PDF