Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-15834 client: disable interception before exec() #14405

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

wiliamhuang
Copy link
Contributor

@wiliamhuang wiliamhuang commented May 20, 2024

Disable interception right before calling exec() which loads a new application image. All IO requests inside exec() will be handled by dfuse.
Once the new application image is loaded in exec and starts, function interception will be enabled inside the constructor function.

Features: pil4dfs
Skip-func-test-el9: false

Required-githooks: true

Before requesting gatekeeper:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate owners.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

Features: pil4dfs
Skip-func-test-el9: false

Required-githooks: true

Signed-off-by: Lei Huang <lei.huang@intel.com>
Copy link

github-actions bot commented May 20, 2024

Ticket title is '2-./dfuse/daos_build.py:DaosBuild.test_dfuse_daos_build_wt_pil4dfs test fails on EL9 weekly testing.'
Status is 'In Review'
Labels: 'ci_impact,intercept_lib,triaged,weekly_test'
https://daosio.atlassian.net/browse/DAOS-15834

@wiliamhuang
Copy link
Contributor Author

@wiliamhuang wiliamhuang marked this pull request as ready for review May 21, 2024 13:44
@wiliamhuang wiliamhuang requested review from a team as code owners May 21, 2024 13:44
@@ -4318,6 +4318,8 @@ reset_daos_env_before_exec(void)
d_daos_inited = false;
daos_debug_inited = false;
context_reset = false;
/* all IO requests go through dfuse */
d_hook_enabled = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

are there any open pool/container handles that need to be cleaned up here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!
Normally bash creates child process with fork(), then call exec() to start a new application shortly. It probably is rare to open a new DFS container between fork() and exec().
I can address this issue in a follow up PR. We need to save the current pid when daos_pool_connect() and daos_cont_open() are called. We can close pool/container handles before exec() if they are opened by current process.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, yes, this only affect time between fork and exec so you're right, it's likely rare to non-existent. Apps that exec are probably doing nothing between fork and exec.

@wiliamhuang
Copy link
Contributor Author

All tests passed in CI.
@wangshilong Could you please review? Thank you!

@wiliamhuang wiliamhuang requested a review from a team May 22, 2024 13:52
@mchaarawi
Copy link
Contributor

please do merge approval and backport to 2.6

@mchaarawi mchaarawi merged commit 6b006d4 into master May 22, 2024
59 of 60 checks passed
@mchaarawi mchaarawi deleted the lei/DAOS-15834 branch May 22, 2024 15:58
@wiliamhuang
Copy link
Contributor Author

please do merge approval and backport to 2.6

@mchaarawi Thank you! What label we should add to apply for 2.6 backport in Jira?

@daltonbohning
Copy link
Contributor

please do merge approval and backport to 2.6

@mchaarawi Thank you! What label we should add to apply for 2.6 backport in Jira?

request_for_2.6

wiliamhuang added a commit that referenced this pull request May 28, 2024
Signed-off-by: Lei Huang <lei.huang@intel.com>
mchaarawi pushed a commit that referenced this pull request May 30, 2024
Signed-off-by: Lei Huang <lei.huang@intel.com>
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.

5 participants