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(stream_family): Fix journaling in the XADD and XTRIM commands #4448

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

Conversation

BagritsevichStepan
Copy link
Contributor

@BagritsevichStepan BagritsevichStepan commented Jan 13, 2025

fixes #4202

  1. Fix journaling
  2. Clean up and refactor the parsing logic for the XADD and XTRIM commands

@BagritsevichStepan BagritsevichStepan self-assigned this Jan 13, 2025
await asyncio.sleep(1)

# Check replica data consistent
master_data = await StaticSeeder.capture(c_master)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see that that static seeder does not work on stream type, see class StaticSeeder impl
also we do not have the hash funciton for stream type in script-hashlib.lua
you will need to add this functionality
Please make a separate PR for this change and validate the static seeder capture finds fails if there is a diff by temporary inserting a bug to replication code of streams

src/redis/t_stream.c Outdated Show resolved Hide resolved
src/redis/t_stream.c Outdated Show resolved Hide resolved
@BagritsevichStepan BagritsevichStepan force-pushed the stream/fix-trim-journaling branch from f635b6a to d8282a2 Compare February 4, 2025 10:25
Signed-off-by: Stepan Bagritsevich <[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.

streams XADD/XTRIM require journal rewrite during the replication
4 participants