Skip to content

Commit

Permalink
Add tests for new scaleToZeroOnInvalidOffset configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Ram Cohen <[email protected]>
  • Loading branch information
RamCohen committed Mar 30, 2022
1 parent 41b5d81 commit b1042f0
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 143 deletions.
2 changes: 1 addition & 1 deletion pkg/scalers/kafka_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (s *kafkaScaler) getLagForPartition(topic string, partitionID int32, offset
retVal = 0
}
errMsg := fmt.Errorf(
"invalid offset found for topic %s in group %s and partition %d, probably no offset is committed yet. Scaling to %d",
"invalid offset found for topic %s in group %s and partition %d, probably no offset is committed yet. Returning with lag of %d",
topic, s.metadata.group, partitionID, retVal)
kafkaLog.V(0).Info(errMsg.Error())
return retVal, errMsg
Expand Down
Loading

0 comments on commit b1042f0

Please sign in to comment.