Skip to content

fix: watch being stuck forever on many cancels #156

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

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

smira
Copy link
Member

@smira smira commented Apr 26, 2024

The bug is triggered when many Watch requests are canceled at the same time, followed by some updates and a new Watch request.

The bug doesn't reproduce when using a proper etcd gRPC client vs. a shortcut to call etcd server methods directly.

See siderolabs/omni#174

The bug is triggered when many Watch requests are canceled at the same
time, followed by some updates and a new Watch request.

The bug doesn't reproduce when using a proper etcd gRPC client vs. a
shortcut to call etcd server methods directly.

See siderolabs/omni#174

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@frezbo
Copy link

frezbo commented Apr 26, 2024

so the fix is from cosi?

@smira
Copy link
Member Author

smira commented Apr 26, 2024

so the fix is from cosi?

not quite, the fix is to use a real client to etcd instead of embedded etcd shortcut, here just the test which reproduces the issue and fixes the client in the tests here

@smira
Copy link
Member Author

smira commented Apr 26, 2024

/m

@talos-bot talos-bot merged commit ad47f25 into cosi-project:main Apr 26, 2024
smira added a commit to smira/omni that referenced this pull request Apr 26, 2024
Fixes siderolabs#174

The fix is to switch to proper gRPC client to embedded etcd.

More information: cosi-project/state-etcd#156

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/omni that referenced this pull request Apr 26, 2024
Fixes siderolabs#174

The fix is to switch to proper gRPC client to embedded etcd.

More information: cosi-project/state-etcd#156

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/omni that referenced this pull request Apr 26, 2024
Fixes siderolabs#174

The fix is to switch to proper gRPC client to embedded etcd.

More information: cosi-project/state-etcd#156

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/omni that referenced this pull request Apr 26, 2024
Fixes siderolabs#174

The fix is to switch to proper gRPC client to embedded etcd.

More information: cosi-project/state-etcd#156

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
ugoenyioha pushed a commit to ugoenyioha/omni that referenced this pull request Aug 15, 2025
Fixes #174

The fix is to switch to proper gRPC client to embedded etcd.

More information: cosi-project/state-etcd#156

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
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

Successfully merging this pull request may close these issues.

3 participants