Skip to content

Commit

Permalink
just panic on corrupt state store
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Mar 18, 2021
1 parent e036a6c commit 4ae9cb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2135,10 +2135,7 @@ func (s *StateStore) CSIVolumeByID(ws memdb.WatchSet, namespace, id string) (*st
if obj == nil {
return nil, nil
}
vol, ok := obj.(*structs.CSIVolume)
if !ok {
return nil, fmt.Errorf("volume row conversion error")
}
vol := obj.(*structs.CSIVolume)

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

0 comments on commit 4ae9cb8

Please sign in to comment.