-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keda Pulsar integration doc says msgBacklogThreshold
is the parameter but code is looking for msgBacklog
#4681
Comments
Wow, nice catch! // FIXME: msgBacklog support DEPRECATED to be removed in v2.13
if val, ok := config.TriggerMetadata[msgBacklogMetricName]; ok {
logger.Info("\"msgBacklog\" is deprecated and will be removed in v2.13, please use \"msgBacklogThreshold\" instead")
t, err := strconv.ParseInt(val, 10, 64)
if err != nil {
return meta, fmt.Errorf("error parsing %s: %w", msgBacklogMetricName, err)
}
meta.msgBacklogThreshold = t
} else if val, ok := config.TriggerMetadata["msgBacklogThreshold"]; ok {
t, err := strconv.ParseInt(val, 10, 64)
if err != nil {
return meta, fmt.Errorf("error parsing %s: %w", msgBacklogMetricName, err)
}
meta.msgBacklogThreshold = t
}
// END FIXME I have reduced the code to include a snippet, but the logger should be propagated until here too |
@JorTurFer Sorry I'm not great with Golang - if there were already some test cases with |
These are unit test for pulsar: https://github.com/kedacore/keda/blob/main/pkg/scalers/pulsar_scaler_test.go |
I am starting out and would like to contribute. I have knowledge of GO is that fine if I open the PR. |
Hey! |
Hi @Mutusva, are you still working on this ? I can author a quick PR if you don't mind |
Hi @dttung2905 sure you can take it up, had travelled and my internet isn't so stable |
Report
Compare https://keda.sh/docs/2.10/scalers/pulsar/
mentioning
msgBacklogThreshold: '5'
to
keda/pkg/scalers/pulsar_scaler.go
Line 43 in 2234a6f
Expected Behavior
Code matches documentation
Actual Behavior
Code does not match documentation - overriding
msgBacklogThreshold
has no impactSteps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.10.1
Kubernetes Version
< 1.23
Platform
Amazon Web Services
Scaler Details
Pulsar
Anything else?
No response
The text was updated successfully, but these errors were encountered: