Skip to content

Commit

Permalink
Update error message for consistency & format long line
Browse files Browse the repository at this point in the history
  • Loading branch information
agrski committed Aug 10, 2023
1 parent 06fe5b1 commit c09abdd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scheduler/pkg/kafka/dataflow/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,14 @@ func (c *ChainerServer) rebalance() {
}
c.mu.Lock()
if len(c.streams) == 0 {
if err := c.pipelineHandler.SetPipelineState(pv.Name, pv.Version, pv.UID, pipeline.PipelineCreate, "No servers available", sourceChainerServer); err != nil {
if err := c.pipelineHandler.SetPipelineState(
pv.Name,
pv.Version,
pv.UID,
pipeline.PipelineCreate,
"no dataflow engines available to handle pipeline",
sourceChainerServer,
); err != nil {
logger.WithError(err).Errorf("Failed to set pipeline state to creating for %s", pv.String())
}
} else {
Expand Down

0 comments on commit c09abdd

Please sign in to comment.