fix(thin): keep the ro fuse option when the profile defines options #6274
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
cheyang
Ⅰ. Describe what this PR does
ThinEngine.parseFuseOptionsaddsroto the fuse mount options when the dataset has the ReadOnlyMany access mode (which is also the default whenaccessModesis empty). When the ThinRuntimeProfile had anyfuse.options, it then didoptions = profile.Spec.Fuse.Options, which replaced the map:rowas lost, soMOUNT_OPTIONSof the fuse container had noroand a read-only dataset was mounted read-write. The same assignment also madeoptionsthe profile's own map, so the runtime options copied in afterwards were written into the profile object.This PR copies the profile options into
optionsinstead of replacing it. The precedence is unchanged (rofirst, 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:rostays next to the profile and runtime options (fails on master)rois 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
roinMOUNT_OPTIONS, i.e. they are mounted read-only like the same runtime without profile options already is. To keep writing, setaccessModeson 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.