Skip to content
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

Nats-jetstream keda connector fails #121

Open
yaymarius opened this issue Feb 23, 2023 · 0 comments
Open

Nats-jetstream keda connector fails #121

yaymarius opened this issue Feb 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yaymarius
Copy link

yaymarius commented Feb 23, 2023

I created pull consumer but getting following error:
{"level":"fatal","ts":1677184769.1167047,"caller":"app/main.go:63","msg":"error occurred while parsing metadata","error":"nats: must use pull subscribe to bind to pull based consumer","stacktrace":" │
│ main.main\n\t/app/main.go:63\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"}

Fission/Kubernetes version

$ fission --version
client:
  fission/core:
    BuildDate: "2023-01-13T06:26:33Z"
    GitCommit: deb3523b
    Version: v1.18.0
server:
  fission/core:
    BuildDate: "2023-01-13T06:26:33Z"
    GitCommit: deb3523b
    Version: v1.18.0
$ kubectl version
Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.6", GitCommit:"ff2c119726cc1f8926fb0585c74b25921e866a28", GitTreeState:"clean", BuildDate:"2023-01-18T19:15:26Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes platform (e.g. Google Kubernetes Engine)

Describe the bug

When there is more messages in stream, and the worker tries to scale it fails.
To Reproduce
Create pull consumer as requested in documentation.

Expected result

Messages are processed in scallable manner.
Actual result
function never initializes as the nats subscription type is wrong
error":"nats: must use pull subscribe to bind to pull based consumer","
Screenshots/Dump file

$ fission support dump

Additional context

If I do what error message does, then first consumer works as expected and every consumer after that returns errors

{"level":"fatal","ts":1677188461.8707836,"caller":"app/main.go:63","msg":"error occurred while parsing metadata","error":"consumer is already bound to a subscription","stacktrace":"main.main\n\t/app │
│ /main.go:63\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"}

@NikhilSharmaWe NikhilSharmaWe added the bug Something isn't working label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants