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

Replication should only execute deterministic commands #604

Closed
adiholden opened this issue Dec 26, 2022 · 8 comments
Closed

Replication should only execute deterministic commands #604

adiholden opened this issue Dec 26, 2022 · 8 comments
Assignees

Comments

@adiholden
Copy link
Collaborator

f.e
spop

@adiholden adiholden changed the title Repliction support commands with random behavoir Replication should only execute deterministic commands Dec 26, 2022
@romange
Copy link
Collaborator

romange commented Jan 6, 2023

Also RENAME should be implemented as "RESTORE" and "DEL", imho

@dranikpg
Copy link
Contributor

dranikpg commented Jan 6, 2023

Why should you encode the whole value just to rename it? Doesn't that slow down the whole flow a lot?

@romange
Copy link
Collaborator

romange commented Jan 6, 2023 via email

@adiholden
Copy link
Collaborator Author

adiholden commented Jan 11, 2023

More commands to rewrite
SDIFFSTORE
SINTERSTORE
SMOVE
SPOP
SUNIONSTORE
BITOP
RENAME
RENAMENX
BLPOP
BRPOP
LMOVE
MOVE - current impl runs as global and written to all shards

@adiholden
Copy link
Collaborator Author

The non deterministic commands that need to be rewrite:
spop
blpop
brpop

@dranikpg
Copy link
Contributor

You already listed them 😅 Lets exclude the blocking ones in this issue and strike through the ones that were implemented: spop and {p}expire{at}

@adiholden
Copy link
Collaborator Author

@dranikpg I think you finished this one right?

@dranikpg
Copy link
Contributor

I think yes

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

No branches or pull requests

3 participants