Skip to content

Commit ed6e97f

Browse files
authored
Add comments/notation to getCleanCacheGracePeriodSeconds in fluid/pkg/ddc/alluxio/cache.go (#4592)
Signed-off-by: Dingzhen230 <Hong_yi_Tao@163.com>
1 parent 9029d5f commit ed6e97f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/ddc/alluxio/cache.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ func (e *AlluxioEngine) getGracefulShutdownLimits() (gracefulShutdownLimits int3
236236
return
237237
}
238238

239+
// getCleanCacheGracePeriodSeconds retrieves the grace period in seconds for cleaning the cache.
240+
// It first attempts to get the runtime configuration. If successful, it checks if the grace period
241+
// is specified in the runtime's CleanCachePolicy. If specified, it returns that value. Otherwise,
242+
// it returns a default value.
239243
func (e *AlluxioEngine) getCleanCacheGracePeriodSeconds() (cleanCacheGracePeriodSeconds int32, err error) {
240244
runtime, err := e.getRuntime()
241245
if err != nil {

0 commit comments

Comments
 (0)