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
7 changes: 7 additions & 0 deletions pkg/ddc/alluxio/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ func (e *AlluxioEngine) invokeCleanCache(path string) (err error) {

}

// getGracefulShutdownLimits retrieves the maximum number of retry attempts for graceful shutdown.
// It first attempts to get the value from the runtime specification's CleanCachePolicy.
// If MaxRetryAttempts is not specified in the runtime, it returns the default value.
//
// Returns:
// - gracefulShutdownLimits: The number of retry attempts allowed for graceful shutdown
// - error: Any error that occurred while retrieving the runtime
func (e *AlluxioEngine) getGracefulShutdownLimits() (gracefulShutdownLimits int32, err error) {
runtime, err := e.getRuntime()
if err != nil {
Expand Down
Loading