← Back to Pull requests

fix(thin): keep the ro fuse option when the profile defines options #6274

Open
unknown opened this pull request with 252 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 19, 2026 18:41 UTC
Author

Ⅰ. Describe what this PR does

ThinEngine.parseFuseOptions adds ro to the fuse mount options when the dataset has the ReadOnlyMany access mode (which is also the default when accessModes is empty). When the ThinRuntimeProfile had any fuse.options, it then did options = profile.Spec.Fuse.Options, which replaced the map: ro was lost, so MOUNT_OPTIONS of the fuse container had no ro and a read-only dataset was mounted read-write. The same assignment also made options the profile's own map, so the runtime options copied in afterwards were written into the profile object.

This PR copies the profile options into options instead of replacing it. The precedence is unchanged (ro first, then profile options, then runtime options override).

Ⅱ. Does this pull request fix one issue?

fixes #6273

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Three specs under "Test ThinEngine.parseFuseOptions" in pkg/ddc/thin/transform_fuse_test.go:

  • read-only dataset and a profile with options: ro stays next to the profile and runtime options (fails on master)

  • the runtime options are not written into the profile (fails on master)

  • writable dataset (ReadWriteMany) and a profile with options: no ro is added (passes before and after, guards the other side)
  • Ⅳ. Describe how to verify it

    go test -gcflags=all=-l ./pkg/ddc/thin/ -ginkgo.focus "parseFuseOptions"

    Ⅴ. Special notes for reviews

    ThinRuntimes bound to a ReadOnlyMany dataset whose profile defines fuse options will now get ro in MOUNT_OPTIONS, i.e. they are mounted read-only like the same runtime without profile options already is. To keep writing, set accessModes on the Dataset to a writable mode. Fuse DaemonSets that are already rendered are not changed until they are rendered again.

    #6153 also touches parseFuseOptions (it sorts the final option list). The two changes are in different parts of the function.

    Diff: 252 lines (+189 / -63) across 3 files Reviewer: cheyang Review duration: 4383m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 252 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.331
    Real PR Conversation Timeline
    1 comments
    "Review active on #6274"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39% (MEDIUM) · Higher = larger blast radius
    39%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.8% · Safe to merge
    20.8%