DAOS-18922: Unit test improvements for DAOS placement algorithm#18426
DAOS-18922: Unit test improvements for DAOS placement algorithm#18426Siddarth-Raj wants to merge 1 commit into
Conversation
|
Errors are component not formatted correctly,Ticket number suffix is not a number. See https://daosio.atlassian.net/wiki/spaces/DC/pages/11133911069/Commit+Comments,Unable to load ticket data |
784a6a2 to
64debc4
Compare
|
@Siddarth-Raj, Could you please add me as a reviewer? Thanks. |
64debc4 to
b5fe872
Compare
2c084e1 to
83a8a76
Compare
83a8a76 to
b769392
Compare
|
can we consider handling the return values in following function calls |
b769392 to
6ed5400
Compare
4485af7 to
5f009bd
Compare
Signed-off-by: Siddarth Raj <siddarth.raj@hpe.com>
5f009bd to
dd653fb
Compare
| struct timespec _t0, _t1; | ||
|
|
||
| clock_gettime(CLOCK_MONOTONIC, &_t0); | ||
| rc = pl_obj_place(ctx->pl_map, PLT_LAYOUT_VERSION, &ctx->oids[i].oid, 0, NULL, |
There was a problem hiding this comment.
Every objects pool map version (omd_ver) is always sent as 1, because it's never updated.
| diff[i].nr = 0; | ||
| diff[i].shard_ids = NULL; | ||
| diff[i].spare_tgts = NULL; | ||
| md = ctx->oids[i].oid; |
There was a problem hiding this comment.
Here we can update the objects pool map version and pass it directly to pl_obj_find_rebuild instead of using a local variable(same as pl_obj_place).
ctx->oids[i].oid.omd_ver = ver;
| D_FREE(shard_ids); | ||
|
|
||
| /* Stage 2: advance targets to the final status */ | ||
| rc = ds_pool_map_tgts_update(NULL, ctx->pool_map, tgts, opc2, false, NULL, false); |
There was a problem hiding this comment.
The pool map version changes even when target status is changed from DOWN/DRAIN -> DOWNOUT, DOWNOUT -> UP. I suggest we update the objects pool map version in the capture_layouts before passing it to pl_obj_place.
Steps for the author:
After all prior steps are complete: