Skip to content

Commit 4ae9cb8

Browse files
committed
just panic on corrupt state store
1 parent e036a6c commit 4ae9cb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nomad/state/state_store.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -2135,10 +2135,7 @@ func (s *StateStore) CSIVolumeByID(ws memdb.WatchSet, namespace, id string) (*st
21352135
if obj == nil {
21362136
return nil, nil
21372137
}
2138-
vol, ok := obj.(*structs.CSIVolume)
2139-
if !ok {
2140-
return nil, fmt.Errorf("volume row conversion error")
2141-
}
2138+
vol := obj.(*structs.CSIVolume)
21422139

21432140
// we return the volume with the plugins denormalized by default,
21442141
// because the scheduler needs them for feasibility checking

0 commit comments

Comments
 (0)