Skip to content

Commit

Permalink
Merge PR ceph#42011 into master
Browse files Browse the repository at this point in the history
* refs/pull/42011/head:
	mds: just respawn mds daemon when osd op requests timeout

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Jun 28, 2021
2 parents eca490c + c854a4e commit 566a8a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mds/MDSContext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ void MDSIOContextBase::complete(int r) {
return;
}

if (r == -CEPHFS_EBLOCKLISTED) {
derr << "MDSIOContextBase: blocklisted! Restarting..." << dendl;
// It's possible that the osd op requests will be stuck and then times out
// after "rados_osd_op_timeout", the mds won't know what we should it, just
// respawn it.
if (r == -CEPHFS_EBLOCKLISTED || r == -CEPHFS_ETIMEDOUT) {
derr << "MDSIOContextBase: failed with " << r << ", restarting..." << dendl;
mds->respawn();
} else {
MDSContext::complete(r);
Expand Down

0 comments on commit 566a8a9

Please sign in to comment.