Skip to content

DAOS-19212 container: check container before creating cont_track_eph_…#18627

Open
liuxuezhao wants to merge 4 commits into
masterfrom
lxz/leader_update_track_eph
Open

DAOS-19212 container: check container before creating cont_track_eph_…#18627
liuxuezhao wants to merge 4 commits into
masterfrom
lxz/leader_update_track_eph

Conversation

@liuxuezhao

Copy link
Copy Markdown
Contributor

…leader

In ds_cont_leader_update_track_eph(), check container's existence before creating cont_track_eph_leader. Because for orphan container case the other engine possibly reports its track_eph to leader, leader should check container's valid in that case.

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).

@liuxuezhao liuxuezhao requested review from a team as code owners July 8, 2026 10:39
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Ticket title is 'Aurora: performance jobs keep timing out with v2.8.0-rc1 and MDonSSD'
Status is 'In Progress'
Labels: '2.8.0rc1,md_on_ssd,scrubbed_2.8,test_2.8.0rc'
https://daosio.atlassian.net/browse/DAOS-19212

@liuxuezhao liuxuezhao requested review from Nasf-Fan and liw July 8, 2026 10:40
Comment thread src/container/srv_container.c
…leader

In ds_cont_leader_update_track_eph(), check container's existence before
creating cont_track_eph_leader. Because for orphan container case the
other engine possibly reports its track_eph to leader, leader should
check container's valid in that case.

Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
@liuxuezhao liuxuezhao force-pushed the lxz/leader_update_track_eph branch from 5a0ebb6 to f9290ff Compare July 9, 2026 02:58
@liuxuezhao liuxuezhao requested a review from Nasf-Fan July 9, 2026 03:00
/* check container's existence before creating cont_track_eph_leader */
rc = rdb_tx_begin(svc->cs_rsvc->s_db, svc->cs_rsvc->s_term, &tx);
if (rc != 0)
D_GOTO(out_put, rc);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Question] Go to out_put will always drop rc and return 0. Is that intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right, looks better to fix it, I'll refresh soon, thanks

@liw liw self-requested a review July 9, 2026 03:11
Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
liw
liw previously approved these changes Jul 9, 2026
Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
@liuxuezhao

Copy link
Copy Markdown
Contributor Author

will push commit 4 to fix some NLT warning for log

@daosbuild3

Copy link
Copy Markdown
Collaborator

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