From eedc700b83da1c30c4c54e1329a08f6a335db09f Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 28 Oct 2025 01:38:54 +0300 Subject: [PATCH] Do not try executing operations on inactive PGs at all --- src/client/cluster_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/cluster_client.cpp b/src/client/cluster_client.cpp index beebdc37..d29b15a2 100644 --- a/src/client/cluster_client.cpp +++ b/src/client/cluster_client.cpp @@ -1317,7 +1317,8 @@ int cluster_client_t::try_send(cluster_op_t *op, int i) auto & pool_cfg = st_cli.pool_config.at(INODE_POOL(op->cur_inode)); auto pg_it = pool_cfg.pg_config.find(part->pg_num); if (pg_it != pool_cfg.pg_config.end() && - !pg_it->second.pause && pg_it->second.cur_primary) + !pg_it->second.pause && pg_it->second.cur_primary && + (pg_it->second.cur_state & PG_ACTIVE)) { osd_num_t primary_osd = pg_it->second.cur_primary; if (pool_cfg.local_reads != POOL_LOCAL_READ_PRIMARY &&