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

INatsKVStore.GetKeysAsync cause connection leak #621

Open
Bykiev opened this issue Aug 29, 2024 · 2 comments
Open

INatsKVStore.GetKeysAsync cause connection leak #621

Bykiev opened this issue Aug 29, 2024 · 2 comments

Comments

@Bykiev
Copy link
Contributor

Bykiev commented Aug 29, 2024

Observed behavior

Calling await foreach (var key in store.GetKeysAsync()) cause connection leak

Expected behavior

No connection leak should be occured

Server and client version

NATS server 2.10.19
NATS .NET v2.3.3

Host environment

Docker image

Steps to reproduce

No response

@Bykiev Bykiev changed the title INatsKVStore GetKeysAsync cause connection leack INatsKVStore GetKeysAsync cause connection leak Aug 29, 2024
@Bykiev Bykiev changed the title INatsKVStore GetKeysAsync cause connection leak INatsKVStore.GetKeysAsync cause connection leak Aug 29, 2024
@mtmk
Copy link
Collaborator

mtmk commented Sep 2, 2024

it might be an issue with KV watcher push consumer buffer causing ahead-of-time issues:

_msgChannel = Channel.CreateBounded<NatsJSMsg<T>>(1);

@mtmk
Copy link
Collaborator

mtmk commented Oct 1, 2024

@Bykiev are you able to create a simple console app to reproduce this? I need to understand the issue a bit more my comment above might not apply here actually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants