Skip to content

Commit 09a6502

Browse files
committed
Add comments to SyncMetadata in pkg\ddc\jindo\metadata.go
1 parent 441d216 commit 09a6502

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/ddc/jindo/metadata.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ import (
2727
"k8s.io/client-go/util/retry"
2828
)
2929

30+
// SyncMetadata synchronizes metadata for the JindoEngine instance.
31+
// It first checks whether metadata synchronization is necessary using `shouldSyncMetadata`.
32+
// If synchronization is needed, it calls `syncMetadataInternal` to perform the update.
33+
// Execution time is tracked, and logs are recorded for debugging and monitoring purposes.
34+
//
35+
// Returns:
36+
// - err: An error if metadata synchronization fails or if the check for synchronization necessity encounters an issue.
3037
func (e *JindoEngine) SyncMetadata() (err error) {
3138
defer utils.TimeTrack(time.Now(), "JindoEngine.SyncMetadata", "name", e.name, "namespace", e.namespace)
3239
defer e.Log.V(1).Info("End to sync metadata", "name", e.name, "namespace", e.namespace)

0 commit comments

Comments
 (0)