Skip to content
Merged
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
13 changes: 12 additions & 1 deletion pkg/ddc/goosefs/health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,18 @@ func (e *GooseFSEngine) CheckRuntimeHealthy() (err error) {
return
}

// checkMasterHealthy checks the master healthy
// checkMasterHealthy checks whether the GooseFS master StatefulSet is healthy.
// It compares the desired and ready replica counts of the master StatefulSet.
// If the master is not healthy, it updates the runtime status to NotReady with the appropriate condition.
// If the master is healthy, it updates the status to Ready.
// The function uses a retry mechanism to handle conflicts when updating the runtime status.
//
// Parameters:
// - none (uses fields from the GooseFSEngine receiver)
//
// Returns:
// - error: returns an error if the master is not healthy or if the runtime status update fails.

func (e *GooseFSEngine) checkMasterHealthy() (err error) {
masterName := e.getMasterName()

Expand Down