-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(alluxio): propagate shared flag for direct UFS mounts #5526
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,6 +168,10 @@ func (e *AlluxioEngine) transformCommonPart(runtime *datav1alpha1.AlluxioRuntime | |
| value.Properties[k] = v | ||
| } | ||
| } | ||
|
|
||
| if m.Shared { | ||
| value.Properties["alluxio.master.mount.table.root.shared"] = "true" | ||
| } | ||
|
Comment on lines
+172
to
+174
|
||
| } | ||
| e.Log.Info("output", "uRootPath", uRootPath, "m", m) | ||
| // set alluxio root ufs | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GenAlluxioUFSRootPath()only returns a non-nilmwhen there is exactly one non-Fluid-native mount whose unified namespace path is/(seepkg/utils/ufs_path_builder.go). For common “direct UFS” setups where the root UFS is the local storage root (/underFSStorage) and the Dataset mount ispvc://orlocal://,mwill be nil, so this change still won’t setalluxio.master.mount.table.root.sharedand the mount will remainnot shared(the behavior described in #998). Consider deriving the root shared setting from the Dataset mounts whenuRootPathis the local storage root (e.g., set it if any Fluid-native mount is markedshared, or at least when there is a single Fluid-native mount withshared: true).