services:
- rgw
with_legacy: true
+- name: rgw_asio_assert_yielding
+ type: bool
+ level: dev
+ desc: Trigger an assertion failure if an operation would block an asio thread
+ default: false
+ services:
+ - rgw
+ with_legacy: true
- name: rgw_user_quota_bucket_sync_interval
type: int
level: advanced
#include "common/BackTrace.h"
#include "common/dout.h"
+#include "include/ceph_assert.h"
thread_local bool is_asio_thread = false;
return;
}
+ // for validation, tests can assert that no requests block
+ const auto& conf = dpp->get_cct()->_conf;
+ ceph_assert_always(!conf->rgw_asio_assert_yielding);
+
+ // otherwise just log the warning and optional backtrace
ldpp_dout(dpp, 20) << "WARNING: blocking librados call" << dendl;
#ifdef _BACKTRACE_LOGGING
ldpp_dout(dpp, 20) << "BACKTRACE: " << ClibBackTrace(0) << dendl;