Bug #72983
closedrank 0 will be marked damaged if stopping fails after flushing ELid and log is trimed
0%
Description
way to reproduce
../src/vstart.sh --debug --new -x --localhost --bluestore
./bin/ceph tell mds.<rank 0> config set mds_kill_shutdown_at 10
./bin/ceph fs set <fs name> down true
wait for a few seconds and will see the following log from
take-over mds and rank 0 is mark damaged
2025-09-11T16:47:24.591+0800 785dabeaa6c0 -1 log_channel(cluster) log [ERR] : No subtrees found for root MDS rank!
2025-09-11T16:47:24.591+0800 785dabeaa6c0 5 mds.beacon.b set_want_state: up:rejoin -> down:damaged
During shutdown_pass after submitting Elid and trimming mdlog, mds
log will now have only ELid event which doesn't do anything at
replay. so after replay, no subtree is found.
Fix this by checking MDLog if there's only ELid event.
If so, don't check subtree for rank 0, and let it request STATE_STOPPED
just as other rank does.
EW Updated by ethan wu about 1 year ago
- Pull request ID set to 65483
VS Updated by Venky Shankar about 1 year ago
- Category set to Correctness/Safety
- Status changed from New to Fix Under Review
- Source set to Community (user)
- Backport set to tentacle
- Component(FS) MDS added
VS Updated by Venky Shankar about 1 year ago
- Status changed from Fix Under Review to Pending Backport
- Target version changed from v20.0.0 to v21.0.0
- Backport changed from tentacle to tentacle,squid
UB Updated by Upkeep Bot about 1 year ago
- Merge Commit set to 9b3bfb6ad2d71d1d8c2a36608be9cb6790271ff5
- Fixed In set to v20.3.0-3324-g9b3bfb6ad2
- Upkeep Timestamp set to 2025-09-29T14:12:33+00:00
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73301: squid: rank 0 will be marked damaged if stopping fails after flushing ELid and log is trimed added
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73302: tentacle: rank 0 will be marked damaged if stopping fails after flushing ELid and log is trimed added
UB Updated by Upkeep Bot about 1 year ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-09-29T14:12:33+00:00 to 2026-08-27T18:12:56+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1960
- Upkeep Timestamp changed from 2026-08-27T18:12:56+00:00 to 2026-10-24T01:48:54+00:00