Skip to content

Keda Kafka lagThreshold error in parsing #5354

Closed
@altrack

Description

Report

When using a Keda Kafka scaler with lagThreshold argument as 1000000 I'm getting the following error:

keda-operator  error parsing kafka metadata: error parsing lagThreshold: strconv.ParseInt: parsing "1e+06": invalid 

syntax


### Expected Behavior

Should parse numbers correctly.

### Actual Behavior

Not able to parse or parsing as: `1e+06`

### Steps to Reproduce the Problem

1. set lagThreshold as 1000000
2. kubectl  describe scaledobjects.keda.sh <your-topic>


### Logs from KEDA operator

_No response_

### KEDA Version

None

### Kubernetes Version

None

### Platform

Google Cloud

### Scaler Details

Kafka

### Anything else?

If the bug is related to another repo please let me know, I'll move it.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status

      Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions