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

[IMPROVED] Optimize catchups for replicas and mirrors with large interior deletes. #4929

Merged
merged 2 commits into from Jan 9, 2024

Conversation

derekcollison
Copy link
Member

Under scenarios where interior deletes were orders of magnitude larger than the msgs themselves, the system would need to transfer all interior deletes as skip msgs. This change adopts the ability to send DeleteRanges on streamSyncRequests, and for R1 mirrors to locally use the new store.SkipMsgs to optimize speed.

This CL also has a bug fix for memory store state with delete details, and several general improvements to the filestore impl.

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

Under scenarios where interior deletes were orders of magnitudes larger than the msgs themselves, the system would need to transfer all interior deletes as skip msgs.
This change adopts the ability to send DeleteRanges on streamSyncRequests, and for R1 mirrors to locally use the new store.SkipMsgs to optimize speed.

This CL also has a bug fix for memory store state with delete details, and several general improvements to the filestore impl.

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison derekcollison requested a review from a team as a code owner January 9, 2024 04:58
Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit bffa983 into main Jan 9, 2024
4 checks passed
@derekcollison derekcollison deleted the catchup-large-deletes branch January 9, 2024 05:44
wallyqs added a commit that referenced this pull request Jan 9, 2024
Cherry-pick the following PRs into the 2.10.8 release branch:

* #4918 
* #4923
* #4925
* #4926
* #4927
* #4929 
* #4933
* #4835

Signed-off-by: Neil Twigg <neil@nats.io>
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.

None yet

2 participants