Skip to content

This PR is to add comments to processUpdatingUFS in pkg/ddc/alluxio/ufs_internal.go.#6082

Open
haooo0418 wants to merge 1 commit into
fluid-cloudnative:masterfrom
haooo0418:add-comments
Open

This PR is to add comments to processUpdatingUFS in pkg/ddc/alluxio/ufs_internal.go.#6082
haooo0418 wants to merge 1 commit into
fluid-cloudnative:masterfrom
haooo0418:add-comments

Conversation

@haooo0418

Copy link
Copy Markdown

Ⅰ. Describe what this PR does

This PR adds function-level comments to processUpdatingUFS in pkg/ddc/alluxio/ufs_internal.go.

Ⅱ. Does this pull request fix one issue?

fixes #6081

Ⅲ. Special notes for reviews

None

@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign trafalgarzzz for approval by writing /assign @trafalgarzzz in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

Hi @haooo0418. Thanks for your PR.

I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds a descriptive comment block to the processUpdatingUFS function in pkg/ddc/alluxio/ufs_internal.go explaining its purpose and steps. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@sonarqubecloud

Copy link
Copy Markdown

@cheyang

cheyang commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

@haooo0418 — this PR is blocked from merging by a failing DCO check.
The DCO bot requires every commit to carry a Signed-off-by: trailer; without it the PR cannot land regardless of lgtm / approved labels or otherwise-green CI.

Please resolve this now. For a single-commit PR:

git commit --amend -s
git push --force-with-lease

For multiple commits on this branch:

git rebase --signoff origin/master
git push --force-with-lease

The code review side is finished and any merge labels already on the PR will take effect once DCO turns green. Reference: https://github.com/apps/dco

// processUpdatingUFS updates the under file system (UFS) mount configuration for the Alluxio engine.
// It first determines the update method based on whether mount config map is enabled,
// then if the update succeeds, it resets the dataset's UfsTotal status to trigger a metadata sync,
// and finally updates the mount timestamp when new mount paths are added.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Small wording nit on this new doc comment: it jumps from "resets the dataset's UfsTotal status to trigger a metadata sync" straight to updating the mount timestamp, but the function actually invokes SyncMetadata explicitly after the status reset, and only then calls updateMountTime (and only when ufsToUpdate.ToAdd() is non-empty). Could you tweak the last sentence to call out SyncMetadata so the doc stays aligned with the control flow? For example: "...resets the dataset's UfsTotal status to Calculating, invokes SyncMetadata, and finally updates the mount timestamp when new mount paths have been added."

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.77%. Comparing base (8cda1f9) to head (f704d3b).
⚠️ Report is 194 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6082      +/-   ##
==========================================
+ Coverage   61.22%   64.77%   +3.54%     
==========================================
  Files         444      484      +40     
  Lines       30557    33892    +3335     
==========================================
+ Hits        18710    21954    +3244     
+ Misses      10307    10215      -92     
- Partials     1540     1723     +183     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add comments to processUpdatingUFS in pkg/ddc/alluxio/ufs_internal.go.

2 participants