Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pkg/ddc/alluxio/ufs.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,18 @@ func (e *AlluxioEngine) ShouldSyncDatasetMounts() (should bool, err error) {
return false, nil
}

// SyncDatasetMounts synchronizes the dataset mount points with the Alluxio runtime.

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.

The comment describes complex synchronization behavior (mounting new UFS paths, unmounting removed paths, updating configurations), but the function body is return nil -- it is a no-op stub. This will mislead readers into thinking the function performs actual work.

Consider updating the comment to reflect the current implementation, e.g.:

// SyncDatasetMounts is a no-op for the Alluxio engine.
// Mount synchronization is not currently required for Alluxio runtimes.

Or if the intent is to document the interface contract, note explicitly that this is a placeholder.

// This function is responsible for applying mount configuration changes detected
// in the dataset specification to the running Alluxio cluster. Typical operations
// may include mounting newly added UFS paths, unmounting removed paths, and
// updating existing mount configurations to ensure consistency between the
// dataset definition and the actual runtime state.
//
// Parameters:
//
// Returns:
Comment on lines +242 to +245

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.

medium

The 'Parameters:' section is empty because the 'SyncDatasetMounts' function does not accept any arguments. It is cleaner and more idiomatic in Go to omit empty documentation sections.

Suggested change
//
// Parameters:
//
// Returns:
//
// Returns:

// - err (error): Returns an error if the synchronization process fails;
// otherwise returns nil.
func (e *AlluxioEngine) SyncDatasetMounts() (err error) {
return nil
}