You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/ddc/base/engine.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,13 @@ type Implement interface {
96
96
// PrepareUFS prepare the mounts and metadata if it's not ready
97
97
PrepareUFS() (errerror)
98
98
99
+
// ShouldSyncDatasetMounts check if we need to sync the dataset mounts
100
+
ShouldSyncDatasetMounts() (shouldbool, errerror)
101
+
102
+
// SyncDatasetMounts sync the mounts in Dataset's spec into cache engine.
103
+
// The func should not only handle mounts changes in the Dataset's spec, but also handle cases where a cache engine lose some mount info because of unexpected crashes.
104
+
SyncDatasetMounts() (errerror)
105
+
99
106
// ShouldUpdateUFS check if we need to update the ufs and return all ufs to update
100
107
// If the ufs have changed and the engine supports add/remove mount points dynamically,
// either runtime.Status.MountTime is not set (for backward compatibility) or runtime.Status.MountTime is earlier than startedAt (i.e. jindocache master is restarted), we need to reprepare UFS
0 commit comments