Skip to content

Commit 033e3d4

Browse files
committed
mds: add debugging for standby-replay journal positions
This adds debugging for https://tracker.ceph.com/issues/59119 Signed-off-by: Patrick Donnelly <[email protected]>
1 parent c672d7a commit 033e3d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mds/MDSRank.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,11 @@ class MDSRank::C_MDS_StandbyReplayRestartFinish : public MDSIOContext {
18161816

18171817
void MDSRank::_standby_replay_restart_finish(int r, uint64_t old_read_pos)
18181818
{
1819-
if (old_read_pos < mdlog->get_journaler()->get_trimmed_pos()) {
1819+
auto trimmed_pos = mdlog->get_journaler()->get_trimmed_pos();
1820+
dout(20) << __func__ << ":"
1821+
<< " old_read_pos=" << old_read_pos
1822+
<< " trimmed_pos=" << trimmed_pos << dendl;
1823+
if (old_read_pos < trimmed_pos) {
18201824
dout(0) << "standby MDS fell behind active MDS journal's expire_pos, restarting" << dendl;
18211825
respawn(); /* we're too far back, and this is easier than
18221826
trying to reset everything in the cache, etc */

0 commit comments

Comments
 (0)