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

panic: interface conversion: jetstream.Consumer is nil, not *jetstream.pullConsumer #1656

Open
zonque opened this issue Jun 20, 2024 · 1 comment
Assignees
Labels
defect Suspected defect such as a bug or regression

Comments

@zonque
Copy link
Contributor

zonque commented Jun 20, 2024

Observed behavior

panic: interface conversion: jetstream.Consumer is nil, not *jetstream.pullConsumer
goroutine 57 [running]:
github.com/nats-io/nats.go/jetstream.(*orderedConsumer).reset(0x17929c0)
        github.com/nats-io/[email protected]/jetstream/ordered.go:542 +0x328
github.com/nats-io/nats.go/jetstream.(*orderedConsumer).Consume.func2()
        github.com/nats-io/[email protected]/jetstream/ordered.go:150 +0xc0
created by github.com/nats-io/nats.go/jetstream.(*orderedConsumer).Consume in goroutine 54
        github.com/nats-io/[email protected]/jetstream/ordered.go:146 +0x76c

Expected behavior

No panic.

Server and client version

Server version 2.10.16
Client version v1.36.0

Host environment

No response

Steps to reproduce

This happens randomly, cannot provide a good reproducer at this point. Will comment on this ticket when I do.

@zonque zonque added the defect Suspected defect such as a bug or regression label Jun 20, 2024
@piotrpio
Copy link
Collaborator

Hello @zonque, thank you for creating the issue, I'll try to reproduce as well and will come back to you when I have a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

3 participants