Skip to content

Commit

Permalink
DAOS-15672 rebuild: Fix pool destroy hangs (#14183)
Browse files Browse the repository at this point in the history
See the Jira ticket for the long story. When releasing resources, for
instance, for stopping a pool, we should attempt on all targets, because
the latest version of the pool map may differ from the version used to
acquire the resources. (And in some cases, we no longer have the
original pool map version in the context.)

Required-githooks: true

Change-Id: I363fbfefae01dd75cc07ded31a2e5b7033f01610
Signed-off-by: Li Wei <wei.g.li@intel.com>
  • Loading branch information
liw authored and jolivier23 committed Jun 13, 2024
1 parent c355740 commit 679d381
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/object/srv_obj_migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3151,9 +3151,7 @@ ds_migrate_stop(struct ds_pool *pool, unsigned int version, unsigned int generat
arg.version = version;
arg.generation = generation;

rc = ds_pool_thread_collective(pool->sp_uuid,
PO_COMP_ST_NEW | PO_COMP_ST_DOWN | PO_COMP_ST_DOWNOUT,
migrate_fini_one_ult, &arg, 0);
rc = ds_pool_thread_collective(pool->sp_uuid, 0, migrate_fini_one_ult, &arg, 0);
if (rc)
D_ERROR(DF_UUID" migrate stop: %d\n", DP_UUID(pool->sp_uuid), rc);

Expand Down

0 comments on commit 679d381

Please sign in to comment.