Skip to content
Closed
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
6 changes: 6 additions & 0 deletions pkg/ddc/alluxio/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ func TestSyncMetadata(t *testing.T) {
wrappedUnhookQueryMetaDataInfoIntoFile()
}

// TestSyncMetadataWithoutMaster tests the SyncMetadata method of AlluxioEngine when no master node is available.
// It verifies that runtime phases (Master/Worker/Fuse) and dataset phase are correctly updated to NotReady/Failed states.
// Paramaters:
// - t (*testing.T): Go testing framework's test handler for reporting failures and logging
// Returns:
// - None (test assertions are made through t.Errorf/t.Fatal on failure)
func TestSyncMetadataWithoutMaster(t *testing.T) {
var statefulsetInputs = []appsv1.StatefulSet{}

Expand Down