Skip to content

Commit

Permalink
fix(controller): vertex nil check for edge listing. Fixes #352 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
whynowy authored Nov 15, 2022
1 parent d872728 commit 6c8f03f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/numaflow/v1alpha1/pipeline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func (p Pipeline) ListAllEdges() []Edge {
for _, e := range p.Spec.Edges {
edgeCopy := e.DeepCopy()
toVertex := p.GetVertex(e.To)
if toVertex == nil {
continue
}
if toVertex.UDF == nil || toVertex.UDF.GroupBy == nil {
// Clean up parallelism if downstream vertex is not a reduce UDF.
// This has been validated by the controller, harmless to do it here.
Expand Down

0 comments on commit 6c8f03f

Please sign in to comment.