Skip to content

DAOS-19937 object: fix convert cond TX restart - #19485

Open
wangshilong wants to merge 3 commits into
release/2.8from
shilongw/DAOS-19937-2.8
Open

wangshilong wants to merge 3 commits into
release/2.8from
shilongw/DAOS-19937-2.8

Conversation

@wangshilong

Copy link
Copy Markdown
Contributor

A sub-task failing with -DER_TX_RESTART is retried by the convert TX, but its error code still propagates to the parent task and fails the retried operation. Reset it once handled, as dc_tx_convert_cb() does.

The per-akey path also registered its callback on the parent, which may complete the parent inside its own completion callback and corrupt its callback list. Move the callback to a body-less aggregation task.

Add test IO58 with DAOS_FAIL_TX_CONVERT injecting the restart.

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Ticket title is 'Conditional update via convert TX fails or crashes when the TX restarts'
Status is 'Awaiting backport'
Labels: 'request_for_2.8.2'
https://daosio.atlassian.net/browse/DAOS-19937

A sub-task failing with -DER_TX_RESTART is retried by the convert TX,
but its error code still propagates to the parent task and fails the
retried operation. Reset it once handled, as dc_tx_convert_cb() does.

The per-akey path also registered its callback on the parent, which may
complete the parent inside its own completion callback and corrupt its
callback list. Move the callback to a body-less aggregation task.

Also fix error paths of the condition check tasks that could close the
TX twice, and hold a TX reference across dc_tx_convert_post().

Add test IO58 with a dedicated DAOS_FAIL_TX_CONVERT_RESTART fail loc
injecting the restart.

Signed-off-by: Wang Shilong <shilong.wang@hpe.com>
@wangshilong
wangshilong force-pushed the shilongw/DAOS-19937-2.8 branch from 9b9a0ca to 07fc778 Compare November 20, 2026 02:42
@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Unit Test with memcheck completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19485/4/testReport/

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Functional Hardware Medium Provider MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19485/4/execution/node/1751/log

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants