Skip to content

Commit e889f3f

Browse files
committed
Add comments/notation to getCleanCacheGracePeriodSeconds in fluid/pkg/ddc/alluxio/cache.go
Signed-off-by: Dingzhen230 <Hong_yi_Tao@163.com>
1 parent df3d2bb commit e889f3f

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
@@ -221,6 +221,10 @@ func (e *AlluxioEngine) getGracefulShutdownLimits() (gracefulShutdownLimits int3
221221
return
222222
}
223223

224+
// getCleanCacheGracePeriodSeconds retrieves the grace period in seconds for cleaning the cache.
225+
// It first attempts to get the runtime configuration. If successful, it checks if the grace period
226+
// is specified in the runtime's CleanCachePolicy. If specified, it returns that value. Otherwise,
227+
// it returns a default value.
224228
func (e *AlluxioEngine) getCleanCacheGracePeriodSeconds() (cleanCacheGracePeriodSeconds int32, err error) {
225229
runtime, err := e.getRuntime()
226230
if err != nil {

0 commit comments

Comments
 (0)