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

fix: make inmem bookmarks random for each run #512

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

smira
Copy link
Member

@smira smira commented Nov 5, 2024

As inmem storage is not persisted, make sure watch bookmark from one run doesn't work with another run.

This still allows watches to be restarted on connection failures, but if the watch is restarted on a program restart, bookmark won't match anymore.

@smira

This comment was marked as resolved.

As inmem storage is not persisted, make sure watch bookmark from one run
doesn't work with another run.

This still allows watches to be restarted on connection failures, but if
the watch is restarted on a program restart, bookmark won't match
anymore.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira force-pushed the fix/inmem-bookmarks branch from 5c7c319 to 6dd2c2b Compare December 12, 2024 15:55
@smira
Copy link
Member Author

smira commented Dec 12, 2024

Verified with Talos Linux:

talosctl get cpustat -w
  • successfully retries transient errors (e.g. apid restarts) and keeps watching
  • on a machine reboot, watch correctly aborts (as the bookmark becomes invalid)

@smira
Copy link
Member Author

smira commented Dec 12, 2024

/m

@talos-bot talos-bot merged commit 6dd2c2b into cosi-project:main Dec 12, 2024
14 checks passed
smira added a commit to smira/talos that referenced this pull request Dec 12, 2024
Final Kubernetes release for Talos 1.9.0.

Also update COSI to pull in a fix for watch restarts:
cosi-project/runtime#512

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Dec 12, 2024
Final Kubernetes release for Talos 1.9.0.

Also update COSI to pull in a fix for watch restarts:
cosi-project/runtime#512

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/state-etcd that referenced this pull request Dec 13, 2024
Catch up with cosi-project/runtime#512.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Dec 17, 2024
Final Kubernetes release for Talos 1.9.0.

Also update COSI to pull in a fix for watch restarts:
cosi-project/runtime#512

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d45e8d1)
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.

4 participants