Skip to content

[IMPROVED] Stop the watcher before performing the purge operations for PurgeDeletes. - #1839

Merged
piotrpio merged 1 commit into
mainfrom
kv-purge-deletes
Mar 31, 2025
Merged

[IMPROVED] Stop the watcher before performing the purge operations for PurgeDeletes.#1839
piotrpio merged 1 commit into
mainfrom
kv-purge-deletes

Conversation

@derekcollison

Copy link
Copy Markdown
Member

This is to avoid the server having to keep calculating numPending for the watcher itself. This can be especially penal if we purge more than one message and the stream / KV has a lot of keys. The server will also be improved in handling this situation, those changes are in flight.

Signed-off-by: Derek Collison derek@nats.io

…tes.

This is to avoid the server having to keep calculating numPending for the watcher itself.
This can be especially penal if we purge more than one message and the stream / KV has a lot of keys.
The server will also be improved in handling this situation, those changes are in flight.

Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison
derekcollison requested a review from piotrpio March 31, 2025 21:51
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.547% (-0.009%) from 84.556%
when pulling 0b30647 on kv-purge-deletes
into 5efde11 on main.

@piotrpio piotrpio left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@piotrpio
piotrpio merged commit b507ca8 into main Mar 31, 2025
@piotrpio
piotrpio deleted the kv-purge-deletes branch March 31, 2025 21:59
@piotrpio piotrpio mentioned this pull request Apr 3, 2025
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