Project

General

Profile

Actions

Bug #72983

closed
EW EW

rank 0 will be marked damaged if stopping fails after flushing ELid and log is trimed

Bug #72983: rank 0 will be marked damaged if stopping fails after flushing ELid and log is trimed

Added by ethan wu about 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:

0%

Source:
Community (user)
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3324-g9b3bfb6ad2
Released In:
v21.2.0~1960
Upkeep Timestamp:
2026-10-24T01:48:54+00:00

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.


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #73301: squid: rank 0 will be marked damaged if stopping fails after flushing ELid and log is trimedResolvedJos Collin

Actions
Copied to CephFS - Backport #73302: tentacle: rank 0 will be marked damaged if stopping fails after flushing ELid and log is trimedResolvedJos Collin

Actions

EW Updated by ethan wu about 1 year ago Actions #1

  • Pull request ID set to 65483

VS Updated by Venky Shankar about 1 year ago Actions #2

  • 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 Actions #3

  • 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 Actions #4

  • 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 Actions #5

  • 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 Actions #6

  • 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 Actions #7

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #8

  • 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 Actions #9

  • 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
Actions

Also available in: PDF Atom