Repository navigation
feat(redis): write entry frames with a stale window - #579
Draft
cosmin-staicu wants to merge 1 commit into
Draft
cosmin-staicu wants to merge 1 commit into
cosmin-staicu wants to merge 1 commit into
Conversation
Gate EntryMetadataEnabled writes on frame1 format negotiation. Add FailSafeDistributedEnabled and FailSafeDistributedMaxStaleAge, and anchor windowed writes. Answer key commands by the frame’s logical expiration. Use compare-and-set to let fills replace an expired frame. Signed-off-by: Cosmin Staicu <cosmin.staicu@uipath.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Writes an expired copy into Redis for a stale window, behind an opt-in option and format negotiation. Stacked on #578; this PR shows only its own layer.
Changes
EntryMetadataEnabledand theframe1advertisement: a node writes frames only while every visible reader can read them, and rechecks the gate before each send.ContainsAsync,TimeToLiveAsync,ExpireTimeAsync,TryAddAsync) answer by the frame's logical expiration; a refresh never extends a windowed frame.SetIfChangedAsyncreplace an expired frame by compare-and-set.With
EntryMetadataEnabledoff, every command and stored byte is as before.Tests
Release, net10.0 and net8.0, with Redis 7.4 and 6.2: write, key-command, refresh, rollback and fill integration classes, the negotiation classes, and the allocation pins (unchanged).