diff --git a/db/hints/manager.cc b/db/hints/manager.cc index 8e2ae49a08..597a082fa3 100644 --- a/db/hints/manager.cc +++ b/db/hints/manager.cc @@ -409,6 +409,12 @@ bool manager::have_ep_manager(const std::variant fm, tracing::trace_state_ptr tr_state) noexcept { + if (utils::get_local_injector().enter("reject_incoming_hints")) { + manager_logger.debug("Rejecting a hint to {} / {} due to an error injection", host_id, ip); + ++_stats.dropped; + return false; + } + if (stopping() || draining_all() || !started() || !can_hint_for(host_id)) { manager_logger.trace("Can't store a hint to {}", host_id); ++_stats.dropped;