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

Revert stopping watcher and set seen_current instead #1377

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Feb 24, 2025

In PR #1321, we introduced a change that was stopping watcher if there were no keys when starting the watch.
This is undesired behaviour, as watcher should allow for endless watch, no matter if there are keys or not.
This PR sets seen_current bool instead.

fixes #1376

Signed-off-by: Tomasz Pietrek [email protected]

In PR #1321, we introduced a change that was stopping watcher if there
were no keys when starting the watch.
This is undesired behaviour, as watcher should allow for endless watch,
no matter if there are keys or not.
This PR sets `seen_current` bool instead.

Signed-off-by: Tomasz Pietrek <[email protected]>
Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Server in 2.11 changed the response when Stream does not exist.
It no longer times out, but sends `no responders` instead.

Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
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.

KV::watch_with_history stop if store is empty
2 participants