]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not assert on fast shutdown timeout 55135/head
authorIgor Fedotov <igor.fedotov@croit.io>
Tue, 19 Sep 2023 11:26:19 +0000 (14:26 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Wed, 10 Jan 2024 18:23:42 +0000 (21:23 +0300)
Fixes: https://tracker.ceph.com/issues/61140
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit f004def5b7cb8aa31e7f428f5be9bcf1aee2f30c)

src/osd/OSD.cc

index c61e7d33218abaa74b5ea02d736d03ca0217c4b7..3cf799b6373071336ef819aa24a50a9c78f8f07c 100644 (file)
@@ -4491,10 +4491,12 @@ int OSD::shutdown()
     store->umount();
 
     utime_t end_time = ceph_clock_now();
-    if (cct->_conf->osd_fast_shutdown_timeout) {
-      ceph_assert(end_time - start_time_func < cct->_conf->osd_fast_shutdown_timeout);
-    }
     dout(0) <<"Fast Shutdown duration total     :" << end_time              - start_time_func       << " seconds" << dendl;
+    if (cct->_conf->osd_fast_shutdown_timeout &&
+        end_time - start_time_func > cct->_conf->osd_fast_shutdown_timeout) {
+      dout(0) << "Fast Shutdown duration exceeded :" << cct->_conf->osd_fast_shutdown_timeout       << " seconds"
+              << dendl;
+    }
     dout(0) <<"Fast Shutdown duration osd_drain :" << start_time_umount     - start_time_osd_drain  << " seconds" << dendl;
     dout(0) <<"Fast Shutdown duration umount    :" << end_time              - start_time_umount     << " seconds" << dendl;
     dout(0) <<"Fast Shutdown duration timer     :" << start_time_osd_drain  - start_time_timer      << " seconds" << dendl;